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