nur-packages/pkgs/tools/misc/samrewritten/default.nix

49 lines
897 B
Nix
Raw Normal View History

2020-10-15 19:05:13 +11:00
{ stdenv
, lib
2020-10-15 19:05:13 +11:00
, fetchFromGitHub
, curl
, gnumake
, gnutls
, gtk3
, gtkmm3
, pkg-config
, yajl
}:
stdenv.mkDerivation rec {
pname = "SamRewritten";
2021-01-04 12:23:50 +11:00
version = "2.1";
2020-10-15 19:05:13 +11:00
src = fetchFromGitHub {
owner = "PaulCombal";
repo = pname;
2021-01-04 12:23:50 +11:00
rev = "202008";
sha256 = "ab7903b997675b0d4d7eede15430fc5ca2736e6c25c7f95a7c97e1ce25582a1c";
2020-10-15 19:05:13 +11:00
};
nativeBuildInputs = [ gnumake pkg-config ];
buildInputs = [
curl
gnutls
gtk3
gtkmm3
yajl
];
NIX_CFLAGS_LINK = "-pthread";
2021-01-04 12:23:50 +11:00
makeFlags = [ "PREFIX=$(out)" ];
postFixup = ''
substituteInPlace $out/share/applications/samrewritten.desktop \
2020-10-15 19:05:13 +11:00
--replace /usr/bin/samrewritten $out/bin/samrewritten
'';
meta = with lib; {
2020-10-15 19:05:13 +11:00
description = "Steam Achievement Manager For Linux";
homepage = "https://github.com/PaulCombal/SamRewritten";
license = licenses.gpl3;
2021-01-04 12:10:40 +11:00
platforms = platforms.linux;
2020-10-15 19:05:13 +11:00
};
}