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-02-20 19:48:46 +01:00
|
|
|
version = "2.7.3";
|
2023-05-27 21:50:03 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kra-mo";
|
|
|
|
repo = "cartridges";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-02-20 19:48:46 +01:00
|
|
|
hash = "sha256-N1Ow2lkBOSnrxI0qLaaJeqgdU2E+jRYxj5Zu/wzS6ds=";
|
2023-05-27 21:50:03 +02:00
|
|
|
};
|
|
|
|
|
2024-01-06 12:11:39 +01:00
|
|
|
pythonPath = with python3Packages; [
|
|
|
|
pillow
|
|
|
|
pygobject3
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
})
|