about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2024-01-25 22:36:57 +0300
committerK900 <me@0upti.me>2024-01-28 16:57:27 +0300
commit4c9da6057faa4d47ad86833fe854b81a76787ccb (patch)
treed8a1872d4469d32137d392b32275fc36d872f707 /pkgs/applications
parent20aa41fb816ec8faa90c3eab8076d591068305df (diff)
yuzu-ea: fix update script
Somehow, nix-prefetch-git crashes when ran without --quiet and with stderr redirected
Diffstat (limited to 'pkgs/applications')
-rwxr-xr-xpkgs/applications/emulators/yuzu/early-access/update.sh6
-rwxr-xr-xpkgs/applications/emulators/yuzu/update.sh2
2 files changed, 2 insertions, 6 deletions
diff --git a/pkgs/applications/emulators/yuzu/early-access/update.sh b/pkgs/applications/emulators/yuzu/early-access/update.sh
index 0e98185bbf9a2..f7ea2ca34a412 100755
--- a/pkgs/applications/emulators/yuzu/early-access/update.sh
+++ b/pkgs/applications/emulators/yuzu/early-access/update.sh
@@ -31,7 +31,7 @@ log "Unpacking dist..."
 tar xf "$eaDist"/*.tar.xz --directory="$eaDistUnpacked" --strip-components=1
 
 log "Rehydrating..."
-eaFullHash="$(nix-prefetch-git --fetch-submodules "$eaDistUnpacked" | jq -r '.sha256')"
+eaFullHash="$(nix-prefetch-git --fetch-submodules --quiet "$eaDistUnpacked" | jq -r '.sha256')"
 
 cat >sources.nix <<EOF
 # Generated by ./update.sh - do not update manually!
@@ -42,7 +42,3 @@ cat >sources.nix <<EOF
   fullHash = "sha256:$eaFullHash";
 }
 EOF
-
-if [ "${COMMIT:-0}" == "1" ]; then
-    git commit -m "yuzu-ea: ${oldVersion} -> ${newVersion}" ./sources.nix
-fi
diff --git a/pkgs/applications/emulators/yuzu/update.sh b/pkgs/applications/emulators/yuzu/update.sh
index 4bb96b2105b4d..25ea10fc9aa0c 100755
--- a/pkgs/applications/emulators/yuzu/update.sh
+++ b/pkgs/applications/emulators/yuzu/update.sh
@@ -4,4 +4,4 @@
 nix-update -u yuzuPackages.nx_tzdb "$@"
 nix-update -u yuzuPackages.compat-list "$@"
 nix-update -u yuzuPackages.mainline "$@"
-nix-update -u yuzuPackages.early-access "$@"
+nix-update -u yuzuPackages.early-access --override-filename pkgs/applications/emulators/yuzu/early-access/sources.nix "$@"