Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
# Deps
gdk-pixbuf,
glib,
graphene,
gtk4,
openssl,
pango,
pkg-config,
wrapGAppsHook4,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "samrewritten";
version = "20250802.1";
src = fetchFromGitHub {
owner = "PaulCombal";
repo = "SamRewritten";
tag = finalAttrs.version;
hash = "sha256-41fBafFmYW8uGICpIJtSnXDP+KV3uVInxm0op40V/tc=";
};
cargoHash = "sha256-Px/TlR3BhiFCv73v06VNq0/W0bQM/ORRE/9ndv5hbpY=";
# Tests require network access and a running Steam client. Skipping.
doCheck = false;
nativeBuildInputs = [
pkg-config
wrapGAppsHook4
];
buildInputs = [
gdk-pixbuf
glib
graphene
gtk4
openssl
pango
];
PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig";
passthru.updateScript = nix-update-script { };
meta = {
description = "Modern Steam achievements manager for Windows and Linux";
mainProgram = "samrewritten";
homepage = "https://github.com/PaulCombal/SamRewritten";
changelog = "https://github.com/PaulCombal/SamRewritten/releases";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ ludovicopiero ];
platforms = [ "x86_64-linux" ];
};
})