commit
a05ed53b2c
|
@ -9588,6 +9588,12 @@
|
|||
github = "s1341";
|
||||
githubId = 5682183;
|
||||
};
|
||||
samalws = {
|
||||
email = "sam@samalws.com";
|
||||
name = "Sam Alws";
|
||||
github = "samalws";
|
||||
githubId = 20981725;
|
||||
};
|
||||
samb96 = {
|
||||
email = "samb96@gmail.com";
|
||||
github = "samb96";
|
||||
|
|
60
pkgs/applications/misc/wike/default.nix
Normal file
60
pkgs/applications/misc/wike/default.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{ lib, stdenv, fetchFromGitHub
|
||||
, meson, pkg-config, ninja
|
||||
, python3
|
||||
, glib, appstream-glib , desktop-file-utils
|
||||
, gobject-introspection, gtk3
|
||||
, wrapGAppsHook
|
||||
, libhandy, webkitgtk, glib-networking
|
||||
, gnome, dconf
|
||||
}:
|
||||
let
|
||||
pythonEnv = python3.withPackages (p: with p; [
|
||||
pygobject3
|
||||
requests
|
||||
]);
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "wike";
|
||||
version = "1.5.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hugolabe";
|
||||
repo = "Wike";
|
||||
rev = version;
|
||||
sha256 = "1qnxzxqjj0sn522k15plskwa7nlhhbcipfc3w17fbq3k2zhpr1yy";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
pkg-config
|
||||
ninja
|
||||
appstream-glib
|
||||
desktop-file-utils
|
||||
gobject-introspection
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
pythonEnv
|
||||
gtk3
|
||||
libhandy
|
||||
webkitgtk
|
||||
glib-networking
|
||||
gnome.adwaita-icon-theme
|
||||
dconf
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs build-aux/meson/postinstall.py
|
||||
substituteInPlace src/wike.in --replace "@PYTHON@" "${pythonEnv}/bin/python"
|
||||
substituteInPlace src/wike-sp.in --replace "@PYTHON@" "${pythonEnv}/bin/python"
|
||||
'';
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -32593,6 +32593,8 @@ with pkgs;
|
|||
|
||||
websocketd = callPackage ../applications/networking/websocketd { };
|
||||
|
||||
wike = callPackage ../applications/misc/wike { };
|
||||
|
||||
wikicurses = callPackage ../applications/misc/wikicurses {
|
||||
pythonPackages = python3Packages;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue