nixpkgs-suyu/pkgs/applications/misc/cartridges/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 lines
1.7 KiB
Nix
Raw Normal View History

2023-05-27 21:50:03 +02:00
{ blueprint-compiler
, desktop-file-utils
, fetchFromGitHub
, gobject-introspection
, lib
, libadwaita
, meson
, ninja
, python3Packages
2023-05-27 21:50:03 +02:00
, stdenv
, wrapGAppsHook4
, 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
};
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
(python3Packages.python.withPackages (_: finalAttrs.pythonPath))
2023-05-27 21:50:03 +02:00
];
nativeBuildInputs = [
blueprint-compiler
desktop-file-utils
gobject-introspection
meson
ninja
python3Packages.wrapPython
2023-05-27 21:50:03 +02:00
wrapGAppsHook4
];
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";
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;
};
})