7 lines
129 B
Bash
Executable file
7 lines
129 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -euo pipefail
|
|
|
|
hash="$(nix-prefetch-url --type sha256 "$@")"
|
|
|
|
nix-hash --to-sri --type sha256 "$hash" 2>/dev/null
|