blob: eab83d78fd6c0a9a325533f70ddafe2bb6a42938 [file] [log] [blame]
Tim Windelschmidt98000a52025-03-06 14:22:15 +01001{ sources ? import ./sources.nix }:
2let
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 Windelschmidtea800252025-07-09 07:00:29 +02009 util-linux-minimal = import ./pkgs/util-linux { pkgs = super; };
Tim Windelschmidt98000a52025-03-06 14:22:15 +010010 bazel-unwrapped = import ./pkgs/bazel { pkgs = super; };
11 perl = import ./pkgs/perl { pkgs = super; };
Tim Windelschmidtea800252025-07-09 07:00:29 +020012 python3Minimal = import ./pkgs/python3 { pkgs = super; };
Tim Windelschmidtf6c2cd22025-07-09 22:13:55 +020013 bison = import ./pkgs/bison { pkgs = super; };
Tim Windelschmidt98000a52025-03-06 14:22:15 +010014 })
15 (self: super: {
16 vde2 = super.vde2.overrideAttrs (oldAttrs: {
17 env.NIX_CFLAGS_COMPILE = (oldAttrs.NIX_CFLAGS_COMPILE or "") + " -Wno-error=int-conversion -Wno-error=implicit-function-declaration";
18 });
19 })
20 ];
21
22 config.replaceCrossStdenv = { buildPackages, baseStdenv }:
23 (buildPackages.withCFlags [ "-fPIC" ]) baseStdenv;
24 };
25in
26pkgs // {
27 lib.version = "${sources.nixpkgs.branch}.${sources.nixpkgs.rev}";
28}