2019-08-10 13:10:44 +01:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, cmake, pkgconfig, makeWrapper
|
2016-07-05 11:58:26 +01:00
|
|
|
, boost, xercesc
|
2015-12-20 02:24:29 +00:00
|
|
|
, qtbase, qttools, qtwebkit, qtxmlpatterns
|
2016-07-05 11:58:26 +01:00
|
|
|
, python3, 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";
|
2019-06-18 13:22:10 +01:00
|
|
|
version = "0.9.14";
|
2014-10-07 14:53:21 +01:00
|
|
|
|
2016-07-05 11:58:26 +01:00
|
|
|
src = fetchFromGitHub {
|
2019-06-18 13:22:10 +01:00
|
|
|
sha256 = "0fmfbfpnmhclbbv9cbr1xnv97si6ls7331kk3ix114iqkngqwgl1";
|
2016-07-05 11:58:26 +01:00
|
|
|
rev = version;
|
|
|
|
repo = "Sigil";
|
|
|
|
owner = "Sigil-Ebook";
|
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 = [
|
2016-07-05 11:58:26 +01:00
|
|
|
boost xercesc qtbase qttools qtwebkit qtxmlpatterns
|
2019-08-10 13:10:44 +01:00
|
|
|
python3Packages.lxml ];
|
|
|
|
|
|
|
|
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";
|
2016-07-05 11:58:26 +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
|
|
|
};
|
|
|
|
}
|