nixpkgs/pkgs/applications/graphics/komikku/default.nix

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

96 lines
1.5 KiB
Nix
Raw Normal View History

2023-03-17 09:14:15 +00:00
{ lib
, fetchFromGitLab
2023-03-27 10:28:07 +00:00
, fetchpatch
2023-03-17 09:14:15 +00:00
, desktop-file-utils
, gettext
, glib
, gobject-introspection
, gtk4
, libadwaita
, libnotify
, webkitgtk_6_0
2023-03-17 09:14:15 +00:00
, meson
, ninja
, pkg-config
, python3
, wrapGAppsHook4
, nix-update-script
}:
python3.pkgs.buildPythonApplication rec {
pname = "komikku";
version = "1.21.1";
2023-03-17 09:14:15 +00:00
format = "other";
src = fetchFromGitLab {
owner = "valos";
repo = "Komikku";
rev = "v${version}";
hash = "sha256-1VqV0tTI8XVwGJhaGWEdSxtWDhQFmrsncvhC4ftJ7Jg=";
2023-03-17 09:14:15 +00:00
};
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook4
gettext
glib # for glib-compile-resources
desktop-file-utils
gobject-introspection
];
buildInputs = [
glib
gtk4
libadwaita
libnotify
webkitgtk_6_0
2023-03-17 09:14:15 +00:00
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 infinitivewitch ];
2023-03-17 09:14:15 +00:00
};
}