diff options
Diffstat (limited to 'lib/tests/sources.sh')
-rwxr-xr-x | lib/tests/sources.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tests/sources.sh b/lib/tests/sources.sh index 71fee719cb2..1f63cac5005 100755 --- a/lib/tests/sources.sh +++ b/lib/tests/sources.sh @@ -26,7 +26,7 @@ touch {README.md,module.o,foo.bar} # nix-instantiate doesn't write out the source, only computing the hash, so # this uses the experimental nix command instead. -dir="$(nix eval --raw '(with import <nixpkgs/lib>; "${ +dir="$(nix eval --impure --raw --expr '(with import <nixpkgs/lib>; "${ cleanSource ./. }")')" (cd $dir; find) | sort -f | diff -U10 - <(cat <<EOF @@ -37,7 +37,7 @@ EOF ) || die "cleanSource 1" -dir="$(nix eval --raw '(with import <nixpkgs/lib>; "${ +dir="$(nix eval --impure --raw --expr '(with import <nixpkgs/lib>; "${ cleanSourceWith { src = '"$work"'; filter = path: type: ! hasSuffix ".bar" path; } }")')" (cd $dir; find) | sort -f | diff -U10 - <(cat <<EOF @@ -47,7 +47,7 @@ dir="$(nix eval --raw '(with import <nixpkgs/lib>; "${ EOF ) || die "cleanSourceWith 1" -dir="$(nix eval --raw '(with import <nixpkgs/lib>; "${ +dir="$(nix eval --impure --raw --expr '(with import <nixpkgs/lib>; "${ cleanSourceWith { src = cleanSource '"$work"'; filter = path: type: ! hasSuffix ".bar" path; } }")')" (cd $dir; find) | sort -f | diff -U10 - <(cat <<EOF |