jellyseerr: adapt update script to new nix-prefetch-github
This commit is contained in:
parent
e0eef2e7c0
commit
f1836b946f
3 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ mkYarnPackage rec {
|
|||
owner = "Fallenbagel";
|
||||
repo = "jellyseerr";
|
||||
rev = "v${version}";
|
||||
sha256 = pin.srcSha256;
|
||||
hash = pin.srcHash;
|
||||
};
|
||||
|
||||
packageJSON = ./package.json;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.4.1",
|
||||
"srcSha256": "LDqlQfy1bm2xMNn1oulImfanQmJX57P48VaZn0Jxwpk=",
|
||||
"srcHash": "sha256-LDqlQfy1bm2xMNn1oulImfanQmJX57P48VaZn0Jxwpk=",
|
||||
"yarnSha256": "162aip7r5vcpfj1sn42qwwdlwnaii32bd2k0gp9py1z0zmw0lwlf"
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ if [ -z "$tag" ]; then
|
|||
fi
|
||||
|
||||
src="https://raw.githubusercontent.com/Fallenbagel/jellyseerr/$tag"
|
||||
src_sha256=$(nix-prefetch-github Fallenbagel jellyseerr --rev ${tag} | jq -r .sha256)
|
||||
src_hash=$(nix-prefetch-github Fallenbagel jellyseerr --rev ${tag} | jq -r .hash)
|
||||
|
||||
tmpdir=$(mktemp -d)
|
||||
trap 'rm -rf "$tmpdir"' EXIT
|
||||
|
@ -33,7 +33,7 @@ curl -O "$src/package.json"
|
|||
cat > pin.json << EOF
|
||||
{
|
||||
"version": "$(echo $tag | grep -P '(\d|\.)+' -o)",
|
||||
"srcSha256": "$src_sha256",
|
||||
"srcHash": "$src_hash",
|
||||
"yarnSha256": "$yarn_sha256"
|
||||
}
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue