2019-06-16 19:59:06 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pantheon, python3, python2, pkgconfig, libxml2, meson, ninja, gtk3, gnome3, glib, webkitgtk
|
2018-12-02 11:41:15 +00:00
|
|
|
, gobject-introspection, sqlite, poppler, poppler_utils, html2text, curl, gnugrep, coreutils, bash, unzip, unar, wrapGAppsHook }:
|
2018-09-08 07:39:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bookworm";
|
2018-11-19 16:05:51 +00:00
|
|
|
version = "unstable-2018-11-19";
|
2018-09-08 07:39:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "babluboy";
|
|
|
|
repo = pname;
|
2018-11-19 16:05:51 +00:00
|
|
|
rev = "4c3061784ff42151cac77d12bf2a28bf831fdfc5";
|
|
|
|
sha256 = "0yrqxa60xlvz249kx966z5krx8i7h17ac0hjgq9p8f0irzy5yp0n";
|
2018-09-08 07:39:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2018-10-31 21:52:35 +00:00
|
|
|
bash
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection
|
2018-09-08 07:39:14 +00:00
|
|
|
libxml2
|
2018-10-31 21:52:35 +00:00
|
|
|
meson
|
2018-09-08 07:39:14 +00:00
|
|
|
ninja
|
|
|
|
pkgconfig
|
2018-10-31 21:52:35 +00:00
|
|
|
python3
|
2018-08-20 20:31:18 +00:00
|
|
|
pantheon.vala
|
2018-09-08 07:39:14 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
2018-08-20 20:31:18 +00:00
|
|
|
buildInputs = [
|
|
|
|
pantheon.elementary-icon-theme
|
|
|
|
pantheon.granite
|
2018-09-08 07:39:14 +00:00
|
|
|
glib
|
2018-08-20 20:31:18 +00:00
|
|
|
gnome3.libgee
|
2018-09-08 07:39:14 +00:00
|
|
|
gtk3
|
|
|
|
html2text
|
|
|
|
poppler
|
2018-10-31 21:52:35 +00:00
|
|
|
python2
|
2018-09-08 07:39:14 +00:00
|
|
|
sqlite
|
|
|
|
webkitgtk
|
|
|
|
];
|
|
|
|
|
2018-10-31 21:52:35 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# These programs are expected in PATH from the source code and scripts
|
2018-09-08 07:39:14 +00:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
2018-10-31 21:52:35 +00:00
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ unzip unar poppler_utils html2text coreutils curl gnugrep ]}"
|
|
|
|
--prefix PATH : $out/bin
|
2018-09-08 07:39:14 +00:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2018-10-31 21:52:35 +00:00
|
|
|
postFixup = ''
|
|
|
|
patchShebangs $out/share/bookworm/scripts/mobi_lib/*.py
|
|
|
|
patchShebangs $out/share/bookworm/scripts/tasks/*.sh
|
|
|
|
'';
|
|
|
|
|
2018-09-08 07:39:14 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A simple, focused eBook reader";
|
|
|
|
longDescription = ''
|
|
|
|
Read the books you love without having to worry about different format complexities like epub, pdf, mobi, cbr, etc.
|
|
|
|
'';
|
|
|
|
homepage = https://babluboy.github.io/bookworm/;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|