2021-09-10 08:57:47 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
|
|
|
, meson, pkg-config, ninja
|
|
|
|
, python3
|
|
|
|
, glib, appstream-glib , desktop-file-utils
|
|
|
|
, gobject-introspection, gtk3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, libhandy, webkitgtk, glib-networking
|
|
|
|
, gnome, dconf
|
|
|
|
}:
|
2022-02-15 13:02:28 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-09-10 08:57:47 +01:00
|
|
|
pname = "wike";
|
2022-02-10 14:05:19 +00:00
|
|
|
version = "1.7.1";
|
2022-02-15 13:02:28 +00:00
|
|
|
format = "other";
|
|
|
|
strictDeps = false; # https://github.com/NixOS/nixpkgs/issues/56943
|
2021-09-10 08:57:47 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hugolabe";
|
|
|
|
repo = "Wike";
|
|
|
|
rev = version;
|
2022-02-10 14:05:19 +00:00
|
|
|
sha256 = "sha256-QLhfzGRrc2En0Hu+UdtPM572PdtXqOFL0W3LoAki4jI=";
|
2021-09-10 08:57:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
pkg-config
|
|
|
|
ninja
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libhandy
|
|
|
|
webkitgtk
|
|
|
|
glib-networking
|
|
|
|
gnome.adwaita-icon-theme
|
|
|
|
dconf
|
|
|
|
];
|
|
|
|
|
2022-02-15 13:02:28 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
requests
|
|
|
|
pygobject3
|
|
|
|
];
|
|
|
|
|
2021-09-10 08:57:47 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Wikipedia Reader for the GNOME Desktop";
|
|
|
|
homepage = "https://github.com/hugolabe/Wike";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = webkitgtk.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ samalws ];
|
|
|
|
};
|
|
|
|
}
|