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.

88 lines
2.0 KiB
Nix
Raw Normal View History

2024-06-08 20:55:11 +00:00
{
lib,
2024-06-08 21:25:33 +00:00
appstream,
2024-06-08 20:55:11 +00:00
blueprint-compiler,
desktop-file-utils,
fetchFromGitHub,
glib,
2024-06-08 21:26:46 +00:00
glib-networking,
gobject-introspection,
gtk4,
2024-06-08 20:55:11 +00:00
libadwaita,
meson,
ninja,
2024-06-08 21:25:33 +00:00
pkg-config,
python3Packages,
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-11-07 19:04:00 +00:00
version = "2.10.1";
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}";
2024-11-07 19:04:00 +00:00
hash = "sha256-uwU0jW5+33hiqpuG83r0GVfANl6ltDLa3s4s0IJHRoQ=";
2023-05-27 19:50:03 +00:00
};
strictDeps = true;
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 # for `desktop-file-validate`
glib # for `glib-compile-schemas`
gtk4 # for `gtk-update-icon-cache`
2023-05-27 19:50:03 +00:00
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
'';
# NOTE: `postCheck` is intentionally not used here, as the entire checkPhase
# is skipped by `buildPythonApplication`
# https://github.com/NixOS/nixpkgs/blob/9d4343b7b27a3e6f08fc22ead568233ff24bbbde/pkgs/development/interpreters/python/mk-python-derivation.nix#L296
postInstallCheck = ''
mesonCheckPhase
'';
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/${version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "cartridges";
platforms = lib.platforms.linux;
2023-05-27 19:50:03 +00:00
};
}