diff options
author | Chuang Zhu <git@chuang.cz> | 2023-03-17 17:14:15 +0800 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-03-17 21:00:34 -0300 |
commit | b7a3087658927fa6d2389c4045b2fe7597970027 (patch) | |
tree | bfdeca1b9c7eaed2a18cab0dba389420a6fb0c70 /pkgs/applications/graphics/komikku | |
parent | 7e1d382035da75c945097c6ce80649b710f67b00 (diff) |
komikku: init at 1.15.0
Diffstat (limited to 'pkgs/applications/graphics/komikku')
-rw-r--r-- | pkgs/applications/graphics/komikku/default.nix | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/komikku/default.nix b/pkgs/applications/graphics/komikku/default.nix new file mode 100644 index 0000000000000..c76e4458fc69b --- /dev/null +++ b/pkgs/applications/graphics/komikku/default.nix @@ -0,0 +1,94 @@ +{ lib +, fetchFromGitLab +, desktop-file-utils +, gettext +, glib +, gobject-introspection +, gtk4 +, libadwaita +, libnotify +, webkitgtk_5_0 +, meson +, ninja +, pkg-config +, python3 +, wrapGAppsHook4 +, nix-update-script +}: + +python3.pkgs.buildPythonApplication rec { + pname = "komikku"; + version = "1.15.0"; + + format = "other"; + + src = fetchFromGitLab { + owner = "valos"; + repo = "Komikku"; + rev = "v${version}"; + hash = "sha256-dmi8a9Gf4ixq5oW6ewDGZYRmxY2qmUrD42DfjskRpHk="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + wrapGAppsHook4 + gettext + glib # for glib-compile-resources + desktop-file-utils + gobject-introspection + ]; + + buildInputs = [ + glib + gtk4 + libadwaita + libnotify + webkitgtk_5_0 + gobject-introspection + ]; + + propagatedBuildInputs = with python3.pkgs; [ + pygobject3 + beautifulsoup4 + brotli + cloudscraper + dateparser + emoji + keyring + lxml + python-magic + natsort + piexif + pillow + pure-protobuf + rarfile + unidecode + ]; + + # Tests require network + doCheck = false; + + # Prevent double wrapping. + dontWrapGApps = true; + + preFixup = '' + makeWrapperArgs+=( + "''${gappsWrapperArgs[@]}" + ) + ''; + + passthru = { + updateScript = nix-update-script { + attrPath = "komikku"; + }; + }; + + meta = with lib; { + description = "Manga reader for GNOME"; + homepage = "https://valos.gitlab.io/Komikku/"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ chuangzhu ]; + }; +} |