samrewritten: 202008-unstable-2025-03-11 -> 20250802.1

Signed-off-by: Ludovico Piero <lewdovico@gnuweeb.org>

+33 -26
+33 -26
pkgs/by-name/sa/samrewritten/package.nix
··· 1 1 { 2 2 lib, 3 - stdenv, 3 + rustPlatform, 4 4 fetchFromGitHub, 5 - unstableGitUpdater, 6 - curl, 7 - gtkmm3, 8 - glibmm, 9 - gnutls, 10 - yajl, 5 + nix-update-script, 6 + 7 + # Deps 8 + gdk-pixbuf, 9 + glib, 10 + graphene, 11 + gtk4, 12 + openssl, 13 + pango, 11 14 pkg-config, 15 + wrapGAppsHook4, 12 16 }: 13 - stdenv.mkDerivation (finalAttrs: { 17 + rustPlatform.buildRustPackage (finalAttrs: { 14 18 pname = "samrewritten"; 15 - version = "202008-unstable-2025-03-11"; 19 + version = "20250802.1"; 16 20 17 21 src = fetchFromGitHub { 18 22 owner = "PaulCombal"; 19 23 repo = "SamRewritten"; 20 - # The latest release is too old, use latest commit instead 21 - rev = "cac0291f3e4465135f5cf7d5b99fdb005fb23ade"; 22 - hash = "sha256-+f/j2q1lJ3yp3/BBgnK9kS4P3ULQ5onQPAcUV12LYnI="; 24 + tag = finalAttrs.version; 25 + hash = "sha256-41fBafFmYW8uGICpIJtSnXDP+KV3uVInxm0op40V/tc="; 23 26 }; 24 27 25 - makeFlags = [ "PREFIX=$(out)" ]; 28 + cargoHash = "sha256-Px/TlR3BhiFCv73v06VNq0/W0bQM/ORRE/9ndv5hbpY="; 29 + 30 + # Tests require network access and a running Steam client. Skipping. 31 + doCheck = false; 26 32 27 - nativeBuildInputs = [ pkg-config ]; 33 + nativeBuildInputs = [ 34 + pkg-config 35 + wrapGAppsHook4 36 + ]; 28 37 29 38 buildInputs = [ 30 - curl 31 - gtkmm3 32 - glibmm 33 - gnutls 34 - yajl 39 + gdk-pixbuf 40 + glib 41 + graphene 42 + gtk4 43 + openssl 44 + pango 35 45 ]; 36 46 37 - postInstall = '' 38 - substituteInPlace $out/share/applications/samrewritten.desktop \ 39 - --replace-fail "Exec=/usr/bin/samrewritten" "Exec=samrewritten" 40 - ''; 47 + PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig"; 41 48 42 - passthru.updateScript = unstableGitUpdater { }; 49 + passthru.updateScript = nix-update-script { }; 43 50 44 51 meta = { 45 - description = "Steam Achievement Manager For Linux. Rewritten in C++"; 52 + description = "Modern Steam achievements manager for Windows and Linux"; 46 53 mainProgram = "samrewritten"; 47 54 homepage = "https://github.com/PaulCombal/SamRewritten"; 48 55 changelog = "https://github.com/PaulCombal/SamRewritten/releases"; 49 - license = lib.licenses.gpl3Plus; 56 + license = lib.licenses.gpl3Only; 50 57 maintainers = with lib.maintainers; [ ludovicopiero ]; 51 58 platforms = [ "x86_64-linux" ]; 52 59 };