2024-02-29 21:27:30 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
curl,
|
|
|
|
glibmm,
|
|
|
|
gtkmm3,
|
|
|
|
steam,
|
|
|
|
yajl,
|
2023-03-10 11:49:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "SamRewritten";
|
|
|
|
version = "202008";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PaulCombal";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-q3kDuZdnWw1Nfu3hVDD8XKJzbmwlx/lafJfhziVYKhw=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2024-02-29 21:27:30 +00:00
|
|
|
buildInputs = [
|
|
|
|
curl
|
|
|
|
glibmm
|
|
|
|
gtkmm3
|
|
|
|
steam
|
|
|
|
yajl
|
|
|
|
];
|
2023-03-10 11:49:45 +00:00
|
|
|
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2023-03-11 10:05:29 +00:00
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace "$out/share/applications/samrewritten.desktop" \
|
|
|
|
--replace "Exec=/usr" "Exec=$out"
|
|
|
|
'';
|
|
|
|
|
2023-03-10 11:49:45 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Steam Achievement Manager For Linux. Rewritten in C++.";
|
|
|
|
homepage = "https://github.com/PaulCombal/SamRewritten";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|