| Tim Windelschmidt | 98000a5 | 2025-03-06 14:22:15 +0100 | [diff] [blame] | 1 | { sources ? import ./sources.nix }: |
| 2 | let |
| 3 | pkgs = import sources.nixpkgs |
| 4 | { |
| 5 | overlays = [ |
| 6 | (self: super: { |
| 7 | qemu-minimal = import ./pkgs/qemu { pkgs = super; }; |
| 8 | diffutils = import ./pkgs/diffutils { pkgs = super; }; |
| 9 | util-linux-minimal = (import ./pkgs/util-linux { pkgs = super; }); |
| 10 | bazel-unwrapped = import ./pkgs/bazel { pkgs = super; }; |
| 11 | perl = import ./pkgs/perl { pkgs = super; }; |
| 12 | }) |
| 13 | (self: super: { |
| 14 | vde2 = super.vde2.overrideAttrs (oldAttrs: { |
| 15 | env.NIX_CFLAGS_COMPILE = (oldAttrs.NIX_CFLAGS_COMPILE or "") + " -Wno-error=int-conversion -Wno-error=implicit-function-declaration"; |
| 16 | }); |
| 17 | }) |
| 18 | ]; |
| 19 | |
| 20 | config.replaceCrossStdenv = { buildPackages, baseStdenv }: |
| 21 | (buildPackages.withCFlags [ "-fPIC" ]) baseStdenv; |
| 22 | }; |
| 23 | in |
| 24 | pkgs // { |
| 25 | lib.version = "${sources.nixpkgs.branch}.${sources.nixpkgs.rev}"; |
| 26 | } |