Skip to content

Commit 6c4a22e

Browse files
committed
fix CI build
1 parent 0723847 commit 6c4a22e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

nixpkgs-check.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
runCommand,
44
nixpkgs-vet,
55
initNix,
6+
writeText,
67
nixpkgs,
78
nix,
89
nixVersions,
@@ -20,6 +21,10 @@ let
2021
eval.success && lib.isDerivation eval.value
2122
) attrset;
2223

24+
configFile = writeText "by-name-config-generated.json" (
25+
builtins.toJSON (import ./by-name-config.nix)
26+
);
27+
2328
mkNixpkgsCheck =
2429
name: nix:
2530
runCommand "test-nixpkgs-vet-with-${nix.name}"
@@ -29,7 +34,10 @@ let
2934
nix
3035
];
3136

32-
env.NIXPKGS_VET_NIX_PACKAGE = lib.getBin nix;
37+
env = {
38+
NIXPKGS_VET_NIX_PACKAGE = lib.getBin nix;
39+
NIXPKGS_VET_CONFIG_FILE = configFile;
40+
};
3341

3442
passthru = {
3543
# Allow running against all other Nix versions.
@@ -46,6 +54,7 @@ let
4654
${initNix}
4755
# This is what nixpkgs-vet uses
4856
export NIXPKGS_VET_NIX_PACKAGE=${lib.getBin nix}
57+
export NIXPKGS_VET_CONFIG_FILE=${configFile}
4958
${nixpkgs-vet}/bin/.nixpkgs-vet-wrapped --base "${nixpkgs}" "${nixpkgs}"
5059
touch $out
5160
'';

0 commit comments

Comments
 (0)