diff options
| author | seth <[email protected]> | 2023-05-27 15:34:24 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-27 15:34:24 -0400 |
| commit | 4c33035fbbc338592baa5be3781b88d7291f80fe (patch) | |
| tree | e9baaf00fe66b3b359ac3b01973360337f015a72 | |
| parent | 8bbc8d7a95b72d8fb8846a00cb0f3450fedaebe7 (diff) | |
pkgs: init cartridges
| -rw-r--r-- | flake.nix | 1 | ||||
| -rw-r--r-- | pkgs/cartridges.nix | 77 |
2 files changed, 78 insertions, 0 deletions
@@ -32,6 +32,7 @@ packageSet = pkgs: with pkgs; { + cartridges = callPackage ./pkgs/cartridges.nix {}; huion = callPackage ./pkgs/huion.nix {}; theseus = callPackage ./pkgs/theseus.nix {}; treefetch = callPackage ./pkgs/treefetch.nix {}; diff --git a/pkgs/cartridges.nix b/pkgs/cartridges.nix new file mode 100644 index 0000000..9a62348 --- /dev/null +++ b/pkgs/cartridges.nix @@ -0,0 +1,77 @@ +{ + blueprint-compiler, + desktop-file-utils, + fetchFromGitHub, + fetchFromGitLab, + gobject-introspection, + lib, + libadwaita, + meson, + ninja, + python3, + stdenv, + wrapGAppsHook4, + ... +}: let + inherit (lib) licenses platforms; + + # it seems cartridges uses features only available in newer versions of + # blueprint-compiler + blueprint-compiler' = blueprint-compiler.overrideAttrs (_: rec { + version = "0.8.1"; + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "jwestman"; + repo = "blueprint-compiler"; + rev = "v${version}"; + hash = "sha256-3lj9BMN5aNujbhhZjObdTOCQfH5ERQCgGqIAw5eZIQc="; + }; + + doCheck = false; + }); +in + stdenv.mkDerivation rec { + pname = "cartridges"; + version = "1.5.4"; + + src = fetchFromGitHub { + owner = "kra-mo"; + repo = "cartridges"; + rev = "v${version}"; + sha256 = "sha256-pOGsuhsBZTFcq+1xsHXtBabV8i9pQw3w6UJnVE3EihM="; + }; + + buildInputs = [ + gobject-introspection + libadwaita + (python3.withPackages (p: + with p; [ + pillow + pygobject3 + pyyaml + requests + ])) + ]; + + nativeBuildInputs = [ + blueprint-compiler' + desktop-file-utils + meson + ninja + wrapGAppsHook4 + ]; + + meta = { + 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; + }; + } |
