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

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

72 lines
1.5 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-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
};
pythonPath = with python3Packages; [
pillow
pygobject3
pyyaml
requests
];
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";
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;
};
})