feat: add pure mode which unsets env variables before script tests

This commit is contained in:
technofab 2025-05-31 19:06:40 +02:00
parent 7bb5c65259
commit 3ff5b358d5
2 changed files with 9 additions and 2 deletions

View file

@ -83,7 +83,9 @@
type = "script";
script = ''
echo Test something here
exit 1
# required in pure mode:
export PATH="${lib.makeBinPath [pkgs.gnugrep]}"
grep -q "test" ${builtins.toFile "test" "test"}
'';
}
];