2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, cmake, pkgconfig, makeWrapper
|
2020-08-20 17:08:02 +00:00
|
|
|
, boost, xercesc, hunspell, zlib, pcre16
|
|
|
|
, qtbase, qttools, qtwebengine, qtxmlpatterns
|
|
|
|
, python3Packages
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "sigil";
|
2020-11-24 20:58:05 +00:00
|
|
|
version = "1.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "Sigil";
|
|
|
|
owner = "Sigil-Ebook";
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = version;
|
2020-11-24 20:58:05 +00:00
|
|
|
sha256 = "1vywybnx2zy75mkx647fhq4xvh5k64b33w69hdjw2v7jz27h4sab";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonPath = with python3Packages; [ lxml ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-08-20 17:08:02 +00:00
|
|
|
boost xercesc qtbase qttools qtwebengine qtxmlpatterns
|
|
|
|
python3Packages.lxml
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-21 19:51:51 +00:00
|
|
|
prePatch = ''
|
|
|
|
sed -i '/^QTLIB_DIR=/ d' src/Resource_Files/bash/sigil-sh_install
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/sigil" \
|
|
|
|
--prefix PYTHONPATH : $PYTHONPATH \
|
|
|
|
''${qtWrapperArgs[@]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Free, open source, multi-platform ebook (ePub) editor";
|
|
|
|
homepage = "https://github.com/Sigil-Ebook/Sigil/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
# currently unmaintained
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|