Skip to content

Commit 7f03699

Browse files
committed
ci/eval: don't allow IFD
1 parent 5adc2dd commit 7f03699

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

ci/eval/default.nix

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,12 @@ let
5050
export GC_INITIAL_HEAP_SIZE=4g
5151
command time -v \
5252
nix-instantiate --eval --strict --json --show-trace \
53-
$src/pkgs/top-level/release-attrpaths-superset.nix -A paths \
54-
--arg enableWarnings false > $out/paths.json
53+
"$src/pkgs/top-level/release-attrpaths-superset.nix" \
54+
-A paths \
55+
-I "$src" \
56+
--option restrict-eval true \
57+
--option allow-import-from-derivation true \
58+
--arg enableWarnings false > $out/paths.json
5559
mv "$supportedSystemsPath" $out/systems.json
5660
'';
5761

@@ -84,6 +88,8 @@ let
8488
set +e
8589
command time -f "Chunk $myChunk on $system done [%MKB max resident, %Es elapsed] %C" \
8690
nix-env -f "${nixpkgs}/pkgs/top-level/release-attrpaths-parallel.nix" \
91+
--option restrict-eval true \
92+
--option allow-import-from-derivation true \
8793
--query --available \
8894
--no-name --attr-path --out-path \
8995
--show-trace \
@@ -93,6 +99,8 @@ let
9399
--arg systems "[ \"$system\" ]" \
94100
--arg checkMeta ${lib.boolToString checkMeta} \
95101
--arg includeBroken ${lib.boolToString includeBroken} \
102+
-I ${nixpkgs} \
103+
-I ${attrpathFile} \
96104
> "$outputDir/result/$myChunk"
97105
exitCode=$?
98106
set -e

0 commit comments

Comments
 (0)