| 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; }; |
| Tim Windelschmidt | ea80025 | 2025-07-09 07:00:29 +0200 | [diff] [blame] | 9 | util-linux-minimal = import ./pkgs/util-linux { pkgs = super; }; |
| Tim Windelschmidt | 98000a5 | 2025-03-06 14:22:15 +0100 | [diff] [blame] | 10 | bazel-unwrapped = import ./pkgs/bazel { pkgs = super; }; |
| 11 | perl = import ./pkgs/perl { pkgs = super; }; |
| Tim Windelschmidt | 5d357d8 | 2025-07-10 18:47:15 +0200 | [diff] [blame^] | 12 | bazel_8 = self.callPackage ./pkgs/bazel_8/package.nix { }; |
| Tim Windelschmidt | ea80025 | 2025-07-09 07:00:29 +0200 | [diff] [blame] | 13 | python3Minimal = import ./pkgs/python3 { pkgs = super; }; |
| Tim Windelschmidt | f6c2cd2 | 2025-07-09 22:13:55 +0200 | [diff] [blame] | 14 | bison = import ./pkgs/bison { pkgs = super; }; |
| Tim Windelschmidt | 98000a5 | 2025-03-06 14:22:15 +0100 | [diff] [blame] | 15 | }) |
| 16 | (self: super: { |
| 17 | vde2 = super.vde2.overrideAttrs (oldAttrs: { |
| 18 | env.NIX_CFLAGS_COMPILE = (oldAttrs.NIX_CFLAGS_COMPILE or "") + " -Wno-error=int-conversion -Wno-error=implicit-function-declaration"; |
| 19 | }); |
| 20 | }) |
| 21 | ]; |
| 22 | |
| 23 | config.replaceCrossStdenv = { buildPackages, baseStdenv }: |
| 24 | (buildPackages.withCFlags [ "-fPIC" ]) baseStdenv; |
| 25 | }; |
| 26 | in |
| 27 | pkgs // { |
| 28 | lib.version = "${sources.nixpkgs.branch}.${sources.nixpkgs.rev}"; |
| 29 | } |