2023-08-04 22:07:22 +00:00
|
|
|
{ blueprint-compiler
|
|
|
|
, desktop-file-utils
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gobject-introspection
|
|
|
|
, lib
|
|
|
|
, libadwaita
|
|
|
|
, meson
|
|
|
|
, ninja
|
2024-01-13 08:15:51 +00:00
|
|
|
, python3Packages
|
2023-08-04 22:07:22 +00:00
|
|
|
, stdenv
|
|
|
|
, wrapGAppsHook4
|
2024-01-13 08:15:51 +00:00
|
|
|
, nix-update-script
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "cartridges";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.7.4";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kra-mo";
|
|
|
|
repo = "cartridges";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-AfO+vLJSWdaMqqbzRZWrY94nu/9BM7mqdad9rkiq1pg=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
pythonPath = with python3Packages; [
|
|
|
|
pillow
|
|
|
|
pygobject3
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# TODO: remove this when #286814 hits master
|
|
|
|
mesonFlags = [ "-Dtiff_compression=jpeg" ];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
buildInputs = [
|
|
|
|
libadwaita
|
2024-01-13 08:15:51 +00:00
|
|
|
(python3Packages.python.withPackages (_: finalAttrs.pythonPath))
|
2023-08-04 22:07:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
blueprint-compiler
|
|
|
|
desktop-file-utils
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
2024-01-13 08:15:51 +00:00
|
|
|
python3Packages.wrapPython
|
2023-08-04 22:07:22 +00:00
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
wrapPythonPrograms "$out/bin" "$out" "$pythonPath"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A GTK4 + Libadwaita game launcher";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cartridges";
|
2023-08-04 22:07:22 +00:00
|
|
|
longDescription = ''
|
|
|
|
A simple game launcher for all of your games.
|
|
|
|
It has support for importing games from Steam, Lutris, Heroic
|
|
|
|
and more with no login necessary.
|
|
|
|
You can sort and hide games or download cover art from SteamGridDB.
|
|
|
|
'';
|
|
|
|
homepage = "https://apps.gnome.org/app/hu.kramo.Cartridges/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.getchoo ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
})
|