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