2021-02-05 17:12:51 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, cmake, pkg-config, makeWrapper
|
2022-10-21 18:38:19 +00:00
|
|
|
, boost, xercesc, qtbase, qttools, qtwebengine, qtxmlpatterns
|
2020-08-20 17:08:02 +00:00
|
|
|
, python3Packages
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "sigil";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.9.20";
|
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;
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-rpJ+HBYmGuhxnZbJn59mc+IokBc5834X2uyriIGnsqA=";
|
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;
|
|
|
|
};
|
|
|
|
}
|