firefox: add nix-prefetch-firefox-extension script

This commit is contained in:
Leonardo Eugênio 2025-12-03 19:49:23 -03:00
parent 80a42cc578
commit fd8180ce67
3 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#!/bin/sh
set -euo pipefail
hash="$(nix-prefetch-url --type sha256 "$@")"
nix-hash --to-sri --type sha256 "$hash" 2>/dev/null