This commit is contained in:
Matthew Bauer 2022-08-29 13:39:54 -05:00
parent b1d2eff40a
commit c1217c6a4e

View file

@ -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
# its not unpacked. So builtins.fetchurl and import <nix/fetchurl.nix> are # its 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 its 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: