2019-08-10 13:10:44 +01:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, cmake, pkgconfig, makeWrapper
|
2020-08-15 20:43:55 +01:00
|
|
|
, boost, xercesc, hunspell, zlib, pcre16
|
|
|
|
, qtbase, qttools, qtwebengine, qtxmlpatterns
|
|
|
|
, python3Packages
|
2014-10-07 14:53:21 +01:00
|
|
|
}:
|
|
|
|
|
2019-08-10 13:10:44 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "sigil";
|
2020-11-26 20:10:12 +00:00
|
|
|
version = "1.4.2";
|
2014-10-07 14:53:21 +01:00
|
|
|
|
2016-07-05 11:58:26 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "Sigil";
|
|
|
|
owner = "Sigil-Ebook";
|
2020-08-15 20:43:55 +01:00
|
|
|
rev = version;
|
2020-11-26 20:10:12 +00:00
|
|
|
sha256 = "1vn444ax5af1gbhkm9lz46jc7zi4grf16cb4wqyb6hvgj2gbl0iw";
|
2014-10-07 14:53:21 +01:00
|
|
|
};
|
|
|
|
|
2016-07-05 11:58:26 +01:00
|
|
|
pythonPath = with python3Packages; [ lxml ];
|
|
|
|
|
2017-03-20 00:37:21 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
|
|
|
|
|
2014-10-07 14:53:21 +01:00
|
|
|
buildInputs = [
|
2020-08-15 20:43:55 +01:00
|
|
|
boost xercesc qtbase qttools qtwebengine qtxmlpatterns
|
|
|
|
python3Packages.lxml
|
|
|
|
];
|
2019-08-10 13:10:44 +01:00
|
|
|
|
2020-11-07 11:50:11 +00:00
|
|
|
prePatch = ''
|
|
|
|
sed -i '/^QTLIB_DIR=/ d' src/Resource_Files/bash/sigil-sh_install
|
|
|
|
'';
|
|
|
|
|
2019-08-10 13:10:44 +01:00
|
|
|
dontWrapQtApps = true;
|
2014-10-07 14:53:21 +01:00
|
|
|
|
2016-07-05 11:58:26 +01:00
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/sigil" \
|
2019-08-10 13:10:44 +01:00
|
|
|
--prefix PYTHONPATH : $PYTHONPATH \
|
|
|
|
''${qtWrapperArgs[@]}
|
2014-10-07 14:53:21 +01:00
|
|
|
'';
|
|
|
|
|
2016-07-05 11:58:26 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-03-20 00:37:21 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-10-07 14:53:21 +01:00
|
|
|
description = "Free, open source, multi-platform ebook (ePub) editor";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Sigil-Ebook/Sigil/";
|
2017-03-20 00:37:21 +00:00
|
|
|
license = licenses.gpl3;
|
2019-08-11 00:44:29 +01:00
|
|
|
# currently unmaintained
|
2017-03-20 00:37:21 +00:00
|
|
|
platforms = platforms.linux;
|
2014-10-07 14:53:21 +01:00
|
|
|
};
|
|
|
|
}
|