1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 04:43:53 +02:00

<nix/fetchurl.nix>: Restore support for "impure = true"

(cherry picked from commit bb63bd50e6)
This commit is contained in:
Eelco Dolstra 2024-02-13 14:14:20 +01:00 committed by github-actions[bot]
parent 52e53a2983
commit 7f66d4f167
3 changed files with 9 additions and 5 deletions

View file

@ -63,3 +63,7 @@ path5=$(nix build -L --no-link --json --file ./impure-derivations.nix contentAdd
path6=$(nix build -L --no-link --json --file ./impure-derivations.nix inputAddressedAfterCA | jq -r .[].outputs.out)
[[ $(< $path6) = X ]]
[[ $(< $TEST_ROOT/counter) = 5 ]]
# Test nix/fetchurl.nix.
path7=$(nix build -L --no-link --print-out-paths --expr "import <nix/fetchurl.nix> { impure = true; url = file://$PWD/impure-derivations.sh; }")
cmp $path7 $PWD/impure-derivations.sh