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