2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2021-09-18 10:52:07 +00:00
|
|
|
, python3
|
2023-04-29 16:46:19 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, gobject-introspection
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, glib
|
|
|
|
, gtk4
|
|
|
|
, librsvg
|
|
|
|
, libadwaita
|
|
|
|
, glib-networking
|
|
|
|
, webkitgtk_6_0
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "wike";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "2.0.1";
|
2022-02-20 05:27:41 +00:00
|
|
|
format = "other";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hugolabe";
|
|
|
|
repo = "Wike";
|
|
|
|
rev = version;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-R8Zg/2tr9MrmtTdbvqD+Ra8+MEBJdgMqC3ptx1VgkeA=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
pkg-config
|
|
|
|
ninja
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
gobject-introspection
|
2023-04-29 16:46:19 +00:00
|
|
|
wrapGAppsHook4
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
2023-04-29 16:46:19 +00:00
|
|
|
gtk4
|
|
|
|
librsvg
|
|
|
|
libadwaita
|
2021-09-18 10:52:07 +00:00
|
|
|
glib-networking
|
2023-04-29 16:46:19 +00:00
|
|
|
webkitgtk_6_0
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
requests
|
|
|
|
pygobject3
|
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
2023-04-29 16:46:19 +00:00
|
|
|
substituteInPlace build-aux/meson/postinstall.py \
|
|
|
|
--replace gtk-update-icon-cache gtk4-update-icon-cache
|
|
|
|
'';
|
|
|
|
|
|
|
|
# prevent double wrapping
|
|
|
|
dontWrapGApps = true;
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
2021-09-18 10:52:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Wikipedia Reader for the GNOME Desktop";
|
|
|
|
homepage = "https://github.com/hugolabe/Wike";
|
|
|
|
license = licenses.gpl3Plus;
|
2023-04-29 16:46:19 +00:00
|
|
|
platforms = platforms.linux;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ samalws ];
|
|
|
|
};
|
|
|
|
}
|