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