From 606402b8907604da1233237bc30401f636067faa Mon Sep 17 00:00:00 2001 From: Anish Pallati Date: Tue, 15 Sep 2026 14:41:52 -0400 Subject: [PATCH] sunshine: fix hash refresh in update script Signed-off-by: Anish Pallati --- pkgs/by-name/su/sunshine/updater.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/su/sunshine/updater.sh b/pkgs/by-name/su/sunshine/updater.sh index 96c293699844..fffa494eb920 100755 --- a/pkgs/by-name/su/sunshine/updater.sh +++ b/pkgs/by-name/su/sunshine/updater.sh @@ -50,7 +50,7 @@ log "src hash: $src_hash" log "Patching src hash in $package_nix" # The src fetchFromGitHub is the only one with fetchSubmodules; anchor on it so # we don't touch the ffmpeg or npmDepsHash entries. sed -z spans newlines. -sed -i -zE "s#hash = \"sha256-[A-Za-z0-9+/=]+\"(\\s*fetchSubmodules = true;)#hash = \"$src_hash\"\\1#" "$package_nix" +sed -i -zE "s#hash = \"sha256-[A-Za-z0-9+/=]+\";(\\s*fetchSubmodules = true;)#hash = \"$src_hash\";\\1#" "$package_nix" if ! grep -q "$src_hash" "$package_nix"; then echo "ERROR: failed to write src hash into $package_nix" >&2 @@ -84,7 +84,7 @@ log "build-deps tag: $build_deps_tag" prefetch_unpacked_sri() { local raw raw=$(nix-prefetch-url --unpack --type sha256 "$1") - nix --extra-experimental-features nix-command hash convert --hash-algo sha256 --to sri "$raw" + nix-hash --type sha256 --to-sri "$raw" } ffmpeg_url() {