diff --git a/scripts/nix-prefetch-url.in b/scripts/nix-prefetch-url.in index 7d0a171631..e5338d72d7 100644 --- a/scripts/nix-prefetch-url.in +++ b/scripts/nix-prefetch-url.in @@ -6,6 +6,9 @@ expHash=$2 # to prevent doing more than 1 chroot unset NIX_ROOT +# needed to make it work on NixOS +export PATH=$PATH:@coreutils@ + hashType=$NIX_HASH_ALGO if test -z "$hashType"; then hashType=md5