nixpkgs/pkgs/applications/misc/wike/default.nix

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

76 lines
1.4 KiB
Nix
Raw Normal View History

2023-04-15 06:50:11 +00:00
{ lib
, fetchFromGitHub
2021-09-10 07:57:47 +00:00
, python3
2023-04-15 06:50:11 +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-10 07:57:47 +00:00
}:
python3.pkgs.buildPythonApplication rec {
2021-09-10 07:57:47 +00:00
pname = "wike";
2024-01-11 21:33:57 +00:00
version = "2.1.0";
format = "other";
2021-09-10 07:57:47 +00:00
src = fetchFromGitHub {
owner = "hugolabe";
repo = "Wike";
rev = version;
2024-01-11 21:33:57 +00:00
hash = "sha256-BXmLZhotQK6L4c2D8F8qF3zmOlSuzXycEN2FaC1K6/g=";
2021-09-10 07:57:47 +00:00
};
nativeBuildInputs = [
meson
pkg-config
ninja
appstream-glib
desktop-file-utils
gobject-introspection
2023-04-15 06:50:11 +00:00
wrapGAppsHook4
2021-09-10 07:57:47 +00:00
];
buildInputs = [
glib
2023-04-15 06:50:11 +00:00
gtk4
librsvg
libadwaita
2021-09-10 07:57:47 +00:00
glib-networking
2023-04-15 06:50:11 +00:00
webkitgtk_6_0
2021-09-10 07:57:47 +00:00
];
propagatedBuildInputs = with python3.pkgs; [
requests
pygobject3
];
2021-09-10 07:57:47 +00:00
postPatch = ''
patchShebangs build-aux/meson/postinstall.py
2023-04-15 06:50:11 +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-10 07:57:47 +00:00
'';
meta = with lib; {
description = "Wikipedia Reader for the GNOME Desktop";
homepage = "https://github.com/hugolabe/Wike";
license = licenses.gpl3Plus;
2023-04-15 06:50:11 +00:00
platforms = platforms.linux;
2021-09-10 07:57:47 +00:00
maintainers = with maintainers; [ samalws ];
2024-03-02 11:28:30 +00:00
mainProgram = "wike";
2021-09-10 07:57:47 +00:00
};
}