ps3-disc-dumper: add update script

This commit is contained in:
Gutyina Gergő 2024-12-03 16:51:39 +01:00
parent 4467161b8c
commit 540c7a13c2
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View File

@ -35,6 +35,8 @@ buildDotnetModule rec {
openssl
];
passthru.updateScript = ./update.sh;
meta = with lib; {
homepage = "https://github.com/13xforever/ps3-disc-dumper";
description = "Handy utility to make decrypted PS3 disc dumps";

View File

@ -0,0 +1,8 @@
#!/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)