@@ -26,7 +26,7 @@ touch {README.md,module.o,foo.bar}
2626# nix-instantiate doesn't write out the source, only computing the hash, so
2727# this uses the experimental nix command instead.
2828
29−dir="$(nix eval --raw '(with import <nixpkgs/lib>; "${
29+dir="$(nix eval --impure --raw --expr '(with import <nixpkgs/lib>; "${
3030 cleanSource ./.
3131}")')"
3232(cd $dir; find) | sort -f | diff -U10 - <(cat <<EOF
@@ -37,7 +37,7 @@ EOF
3737) || die "cleanSource 1"
3838
3939
40−dir="$(nix eval --raw '(with import <nixpkgs/lib>; "${
40+dir="$(nix eval --impure --raw --expr '(with import <nixpkgs/lib>; "${
4141 cleanSourceWith { src = '"$work"'; filter = path: type: ! hasSuffix ".bar" path; }
4242}")')"
4343(cd $dir; find) | sort -f | diff -U10 - <(cat <<EOF
@@ -47,7 +47,7 @@ dir="$(nix eval --raw '(with import <nixpkgs/lib>; "${
4747EOF
4848) || die "cleanSourceWith 1"
4949
50−dir="$(nix eval --raw '(with import <nixpkgs/lib>; "${
50+dir="$(nix eval --impure --raw --expr '(with import <nixpkgs/lib>; "${
5151 cleanSourceWith { src = cleanSource '"$work"'; filter = path: type: ! hasSuffix ".bar" path; }
5252}")')"
5353(cd $dir; find) | sort -f | diff -U10 - <(cat <<EOF