2021-01-25 08:26:54 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, cmake, pkg-config, makeWrapper
|
2020-08-15 19:43:55 +00:00
|
|
|
, boost, xercesc, hunspell, zlib, pcre16
|
|
|
|
, qtbase, qttools, qtwebengine, qtxmlpatterns
|
|
|
|
, python3Packages
|
2014-10-07 13:53:21 +00:00
|
|
|
}:
|
|
|
|
|
2019-08-10 12:10:44 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sigil";
|
2021-08-17 23:54:45 +00:00
|
|
|
version = "1.7.0";
|
2014-10-07 13:53:21 +00:00
|
|
|
|
2016-07-05 10:58:26 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "Sigil";
|
|
|
|
owner = "Sigil-Ebook";
|
2020-08-15 19:43:55 +00:00
|
|
|
rev = version;
|
2021-08-17 23:54:45 +00:00
|
|
|
sha256 = "sha256-a1gstR7qHbzQ3GZ0g/lxUxcHeZ5QgJIvhCV37tqlVfA=";
|
2014-10-07 13:53:21 +00:00
|
|
|
};
|
|
|
|
|
2016-07-05 10:58:26 +00:00
|
|
|
pythonPath = with python3Packages; [ lxml ];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
2017-03-20 00:37:21 +00:00
|
|
|
|
2014-10-07 13:53:21 +00:00
|
|
|
buildInputs = [
|
2020-08-15 19:43:55 +00:00
|
|
|
boost xercesc qtbase qttools qtwebengine qtxmlpatterns
|
|
|
|
python3Packages.lxml
|
|
|
|
];
|
2019-08-10 12:10:44 +00: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 12:10:44 +00:00
|
|
|
dontWrapQtApps = true;
|
2014-10-07 13:53:21 +00:00
|
|
|
|
2016-07-05 10:58:26 +00:00
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/sigil" \
|
2019-08-10 12:10:44 +00:00
|
|
|
--prefix PYTHONPATH : $PYTHONPATH \
|
|
|
|
''${qtWrapperArgs[@]}
|
2014-10-07 13:53:21 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-10-07 13:53:21 +00:00
|
|
|
description = "Free, open source, multi-platform ebook (ePub) editor";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/Sigil-Ebook/Sigil/";
|
2017-03-20 00:37:21 +00:00
|
|
|
license = licenses.gpl3;
|
2019-08-10 23:44:29 +00:00
|
|
|
# currently unmaintained
|
2017-03-20 00:37:21 +00:00
|
|
|
platforms = platforms.linux;
|
2014-10-07 13:53:21 +00:00
|
|
|
};
|
|
|
|
}
|