2021-02-05 17:12:51 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, cmake, pkg-config, 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";
|
2021-12-21 02:18:32 +00:00
|
|
|
version = "1.8.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;
|
2021-12-21 02:18:32 +00:00
|
|
|
sha256 = "sha256-luX4/KERB4GwpID7zVnd6F/mN8SHTy9zmqSUzJ1CYPk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonPath = with python3Packages; [ lxml ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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[@]}
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Free, open source, multi-platform ebook (ePub) editor";
|
|
|
|
homepage = "https://github.com/Sigil-Ebook/Sigil/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
# currently unmaintained
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|