Nix: Make prefetch auto-copy the hash.
This commit is contained in:
parent
fa4a5bce58
commit
3fb91b5afb
|
@ -57,7 +57,9 @@
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
nix hash to-sri --type sha256 $(nix-prefetch-url "''${url}")
|
local result=$(nix hash to-sri --type sha256 $(nix-prefetch-url "''${url}"))
|
||||||
|
printf "%s" ''${result} | copy
|
||||||
|
printf "%s\n" ''${result}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run nix locally with no builders.
|
# Run nix locally with no builders.
|
||||||
|
|
Loading…
Reference in a new issue