depot/third_party/nixpkgs/pkgs/by-name/sa/samrewritten/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

53 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
unstableGitUpdater,
curl,
gtkmm3,
glibmm,
gnutls,
yajl,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "samrewritten";
version = "202008-unstable-2023-05-22";
src = fetchFromGitHub {
owner = "PaulCombal";
repo = "SamRewritten";
# The latest release is too old, use latest commit instead
rev = "39d524a72678a226bf9140db6b97641f554563c3";
hash = "sha256-sS/lVY5EWXdTOg7cDWPbi/n5TNt+pRAF1x7ZEaYG4wM=";
};
makeFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
curl
gtkmm3
glibmm
gnutls
yajl
];
postInstall = ''
substituteInPlace $out/share/applications/samrewritten.desktop \
--replace-fail "Exec=/usr/bin/samrewritten" "Exec=samrewritten"
'';
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "Steam Achievement Manager For Linux. Rewritten in C++";
mainProgram = "samrewritten";
homepage = "https://github.com/PaulCombal/SamRewritten";
changelog = "https://github.com/PaulCombal/SamRewritten/releases";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ ludovicopiero ];
platforms = [ "x86_64-linux" ];
};
})