{tor,mullvad}-browser: get correct hash in update script

This commit is contained in:
Felix Schröter 2024-10-03 21:03:46 +02:00
parent 9133b9f555
commit 7945d5064b
No known key found for this signature in database
GPG Key ID: 671E39E6744C807D
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ in writeShellScript "update-${pname}" ''
for platform in ${lib.escapeShellArgs meta.platforms}; do
arch="''${platforms[$platform]}"
sha256=$(grep "${name}-$arch-$version.tar.xz" "$HOME/shasums" | cut -d" " -f1)
sha256=$(grep "${name}-$arch-$version.tar.xz" "$HOME/shasums" | head -1 | cut -d" " -f1)
hash=$(nix hash to-sri --type sha256 "$sha256")
update-source-version "${pname}" "$version" "$hash" --ignore-same-version --source-key="sources.$platform"

View File

@ -56,7 +56,7 @@ in writeShellScript "update-${pname}" ''
for platform in ${lib.escapeShellArgs meta.platforms}; do
arch="''${platforms[$platform]}"
sha256=$(grep "${name}-$arch-$version.tar.xz" "$HOME/shasums" | cut -d" " -f1)
sha256=$(grep "${name}-$arch-$version.tar.xz" "$HOME/shasums" | head -1 | cut -d" " -f1)
hash=$(nix hash to-sri --type sha256 "$sha256")
update-source-version "${pname}" "$version" "$hash" --ignore-same-version --source-key="sources.$platform"