mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
<nix/fetchurl.nix>: Restore support for "impure = true"
(cherry picked from commit bb63bd50e6
)
This commit is contained in:
parent
52e53a2983
commit
7f66d4f167
3 changed files with 9 additions and 5 deletions
|
@ -83,4 +83,4 @@ test -L $outPath/symlink
|
|||
requireDaemonNewerThan "2.20"
|
||||
expected=100
|
||||
if [[ -v NIX_DAEMON_PACKAGE ]]; then expected=1; fi # work around the daemon not returning a 100 status correctly
|
||||
expectStderr $expected nix-build --expr '{ url }: builtins.derivation { name = "nix-cache-info"; system = "x86_64-linux"; builder = "builtin:fetchurl"; inherit url; outputHashMode = "flat"; }' --argstr url file://$narxz 2>&1 | grep 'must be a fixed-output derivation'
|
||||
expectStderr $expected nix-build --expr '{ url }: builtins.derivation { name = "nix-cache-info"; system = "x86_64-linux"; builder = "builtin:fetchurl"; inherit url; outputHashMode = "flat"; }' --argstr url file://$narxz 2>&1 | grep 'must be a fixed-output or impure derivation'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue