nixpkgs/pkgs/by-name/ca/cartridges/package.nix

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

74 lines
1.6 KiB
Nix
Raw Normal View History

2024-06-08 20:55:11 +00:00
{
lib,
fetchFromGitHub,
python3Packages,
2024-06-08 21:25:33 +00:00
appstream,
2024-06-08 20:55:11 +00:00
blueprint-compiler,
desktop-file-utils,
gobject-introspection,
2024-06-08 21:26:46 +00:00
glib-networking,
2024-06-08 20:55:11 +00:00
libadwaita,
meson,
ninja,
2024-06-08 21:25:33 +00:00
pkg-config,
2024-06-08 20:55:11 +00:00
wrapGAppsHook4,
2023-05-27 19:50:03 +00:00
}:
python3Packages.buildPythonApplication rec {
2023-05-27 19:50:03 +00:00
pname = "cartridges";
2024-07-21 22:57:01 +00:00
version = "2.9.3";
pyproject = false;
2023-05-27 19:50:03 +00:00
src = fetchFromGitHub {
owner = "kra-mo";
repo = "cartridges";
2024-07-21 22:57:01 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-37i8p6KaS/G7ybw850XYaPiG83/Lffn/+21xVk5xva0=";
2023-05-27 19:50:03 +00:00
};
nativeBuildInputs = [
2024-06-08 21:25:33 +00:00
appstream
2023-05-27 19:50:03 +00:00
blueprint-compiler
desktop-file-utils
gobject-introspection
meson
ninja
2024-06-08 21:25:33 +00:00
pkg-config
2023-05-27 19:50:03 +00:00
wrapGAppsHook4
];
2024-06-08 21:26:46 +00:00
buildInputs = [
glib-networking
libadwaita
];
dependencies = with python3Packages; [
pillow
pygobject3
pyyaml
requests
];
dontWrapGApps = true;
makeWrapperArgs = [ ''''${gappsWrapperArgs[@]}'' ];
postFixup = ''
wrapPythonProgramsIn $out/libexec $out $pythonPath
'';
meta = {
2023-05-27 19:50:03 +00:00
description = "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.
'';
2024-05-04 22:52:37 +00:00
homepage = "https://apps.gnome.org/Cartridges/";
changelog = "https://github.com/kra-mo/cartridges/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "cartridges";
platforms = lib.platforms.linux;
2023-05-27 19:50:03 +00:00
};
}