Add note
This commit is contained in:
parent
b1d2eff40a
commit
c1217c6a4e
|
@ -17,9 +17,10 @@ let
|
||||||
# The hash we get from the lock file is using recursive ingestion even though
|
# The hash we get from the lock file is using recursive ingestion even though
|
||||||
# it’s not unpacked. So builtins.fetchurl and import <nix/fetchurl.nix> are
|
# it’s not unpacked. So builtins.fetchurl and import <nix/fetchurl.nix> are
|
||||||
# insufficient.
|
# insufficient.
|
||||||
|
# Note that this will be a derivation and not a path as fetchTarball is,
|
||||||
|
# causing the hash of this input to be different on flake and non-flake evaluation.
|
||||||
fetchurl = { url, sha256 }:
|
fetchurl = { url, sha256 }:
|
||||||
# need to hide the fact it’s a derivation so that the output is just a path
|
derivation {
|
||||||
builtins.storePath (builtins.unsafeDiscardStringContext (derivation {
|
|
||||||
builder = "builtin:fetchurl";
|
builder = "builtin:fetchurl";
|
||||||
|
|
||||||
name = "source";
|
name = "source";
|
||||||
|
@ -46,7 +47,7 @@ let
|
||||||
|
|
||||||
# To make "nix-prefetch-url" work.
|
# To make "nix-prefetch-url" work.
|
||||||
urls = [ url ];
|
urls = [ url ];
|
||||||
}).outPath);
|
};
|
||||||
|
|
||||||
fetchTree =
|
fetchTree =
|
||||||
info:
|
info:
|
||||||
|
|
Loading…
Reference in a new issue