2023-05-27 21:50:03 +02:00
|
|
|
{ blueprint-compiler
|
|
|
|
, desktop-file-utils
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gobject-introspection
|
|
|
|
, lib
|
|
|
|
, libadwaita
|
|
|
|
, meson
|
|
|
|
, ninja
|
2024-01-06 12:11:39 +01:00
|
|
|
, python3Packages
|
2023-05-27 21:50:03 +02:00
|
|
|
, stdenv
|
|
|
|
, wrapGAppsHook4
|
2024-01-06 12:11:39 +01:00
|
|
|
, nix-update-script
|
2023-05-27 21:50:03 +02:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "cartridges";
|
2024-03-07 00:47:52 +01:00
|
|
|
version = "2.7.4";
|
2023-05-27 21:50:03 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kra-mo";
|
|
|
|
repo = "cartridges";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-03-07 00:47:52 +01:00
|
|
|
hash = "sha256-AfO+vLJSWdaMqqbzRZWrY94nu/9BM7mqdad9rkiq1pg=";
|
2023-05-27 21:50:03 +02:00
|
|
|
};
|
|
|
|
|
2024-01-06 12:11:39 +01:00
|
|
|
pythonPath = with python3Packages; [
|
|
|
|
pillow
|
|
|
|
pygobject3
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2024-02-20 19:48:46 +01:00
|
|
|
# TODO: remove this when #286814 hits master
|
|
|
|
mesonFlags = [ "-Dtiff_compression=jpeg" ];
|
|
|
|
|
2023-05-27 21:50:03 +02:00
|
|
|
buildInputs = [
|
|
|
|
libadwaita
|
2024-01-06 12:11:39 +01:00
|
|
|
(python3Packages.python.withPackages (_: finalAttrs.pythonPath))
|
2023-05-27 21:50:03 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
blueprint-compiler
|
|
|
|
desktop-file-utils
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
2024-01-06 12:11:39 +01:00
|
|
|
python3Packages.wrapPython
|
2023-05-27 21:50:03 +02:00
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
2024-01-06 12:11:39 +01:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
wrapPythonPrograms "$out/bin" "$out" "$pythonPath"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
};
|
|
|
|
|
2023-05-27 21:50:03 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A GTK4 + Libadwaita game launcher";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "cartridges";
|
2023-05-27 21:50:03 +02: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;
|
|
|
|
};
|
|
|
|
})
|