From 2fc670873f0d50e734f81224fe868746e8f3594a Mon Sep 17 00:00:00 2001 From: emaryn Date: Thu, 27 Feb 2025 06:56:45 +0800 Subject: [PATCH] rusty-psn: 0.3.7 -> 0.5.6 --- pkgs/by-name/ru/rusty-psn/fix-cargo-lock.patch | 13 ------------- pkgs/by-name/ru/rusty-psn/package.nix | 16 +++++++--------- 2 files changed, 7 insertions(+), 22 deletions(-) delete mode 100644 pkgs/by-name/ru/rusty-psn/fix-cargo-lock.patch diff --git a/pkgs/by-name/ru/rusty-psn/fix-cargo-lock.patch b/pkgs/by-name/ru/rusty-psn/fix-cargo-lock.patch deleted file mode 100644 index 8e9275366ced..000000000000 --- a/pkgs/by-name/ru/rusty-psn/fix-cargo-lock.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/Cargo.lock b/Cargo.lock -index 3b63c3d..38a0fc0 100644 ---- a/Cargo.lock -+++ b/Cargo.lock -@@ -3141,7 +3141,7 @@ dependencies = [ - - [[package]] - name = "rusty-psn" --version = "0.3.3" -+version = "0.3.7" - dependencies = [ - "bytesize", - "clap", diff --git a/pkgs/by-name/ru/rusty-psn/package.nix b/pkgs/by-name/ru/rusty-psn/package.nix index 0f2cbef080d8..d8d28ce6848b 100644 --- a/pkgs/by-name/ru/rusty-psn/package.nix +++ b/pkgs/by-name/ru/rusty-psn/package.nix @@ -18,19 +18,17 @@ rustPlatform.buildRustPackage rec { pname = "rusty-psn"; - version = "0.3.7"; + version = "0.5.6"; src = fetchFromGitHub { owner = "RainbowCookie32"; repo = "rusty-psn"; - rev = "v${version}"; - sha256 = "sha256-EGj9VVY+Zbmth7H1oTgq38KNLT/aWoTPn8k4sVkScgg="; + tag = "v${version}"; + hash = "sha256-Nx73PkHmhGQo6arr5a878htKd2DXuz2q95++ute0oPg="; }; - cargoPatches = [ ./fix-cargo-lock.patch ]; - useFetchCargoVendor = true; - cargoHash = "sha256-FhY4Yf7e0Kk/a1ngPUQcd6R6MDpoyt/2WJhcCeTjKJE="; + cargoHash = "sha256-cMrN7EkRPsb+NLUgXP9K9bw1kL1j/3Qpp9iwM4B+AWo="; # Tests require network access doCheck = false; @@ -92,12 +90,12 @@ rustPlatform.buildRustPackage rec { }); desktopItems = lib.optionals withGui [ desktopItem ]; - meta = with lib; { + meta = { description = "Simple tool to grab updates for PS3 games, directly from Sony's servers using their updates API"; homepage = "https://github.com/RainbowCookie32/rusty-psn/"; - license = licenses.mit; + license = lib.licenses.mit; platforms = [ "x86_64-linux" ]; - maintainers = with maintainers; [ AngryAnt ]; + maintainers = with lib.maintainers; [ AngryAnt ]; mainProgram = "rusty-psn"; }; }