ps3-disc-dumper: use nix-update-script

This commit is contained in:
Gutyina Gergő
2025-03-11 22:00:49 +01:00
parent 3de2e54dac
commit b416182de9
2 changed files with 2 additions and 9 deletions
+2 -1
View File
@@ -5,6 +5,7 @@
zlib,
openssl,
dotnetCorePackages,
nix-update-script,
}:
buildDotnetModule rec {
@@ -37,7 +38,7 @@ buildDotnetModule rec {
openssl
];
passthru.updateScript = ./update.sh;
passthru.updateScript = nix-update-script { };
meta = {
description = "Handy utility to make decrypted PS3 disc dumps";
@@ -1,8 +0,0 @@
#!/usr/bin/env nix-shell
#!nix-shell --pure -i bash -p bash nix nix-update git cacert
set -eo pipefail
prev_version=$(nix eval --raw -f. ps3-disc-dumper.version)
nix-update ps3-disc-dumper
[[ $(nix eval --raw -f. ps3-disc-dumper.version) == "$prev_version" ]] ||
$(nix-build . -A ps3-disc-dumper.fetch-deps --no-out-link)