2016-07-05 11:58:26 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, makeWrapper
|
|
|
|
, boost, xercesc
|
2015-12-20 02:24:29 +00:00
|
|
|
, qtbase, qttools, qtwebkit, qtxmlpatterns
|
2016-07-05 11:58:26 +01:00
|
|
|
, python3, python3Packages
|
2014-10-07 14:53:21 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-07 15:51:25 +01:00
|
|
|
name = "sigil-${version}";
|
2017-03-20 00:37:21 +00:00
|
|
|
version = "0.9.7";
|
2014-10-07 14:53:21 +01:00
|
|
|
|
2016-07-05 11:58:26 +01:00
|
|
|
src = fetchFromGitHub {
|
2017-03-20 00:37:21 +00:00
|
|
|
sha256 = "17m2f7pj2sx5rxrbry6wk1lvviy8fi2m270h47sisywnrhddarh7";
|
2016-07-05 11:58:26 +01:00
|
|
|
rev = version;
|
|
|
|
repo = "Sigil";
|
|
|
|
owner = "Sigil-Ebook";
|
2014-10-07 14:53:21 +01:00
|
|
|
};
|
|
|
|
|
2016-07-05 11:58:26 +01:00
|
|
|
pythonPath = with python3Packages; [ lxml ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ lxml ];
|
|
|
|
|
2017-03-20 00:37:21 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
|
|
|
|
|
2014-10-07 14:53:21 +01:00
|
|
|
buildInputs = [
|
2016-07-05 11:58:26 +01:00
|
|
|
boost xercesc qtbase qttools qtwebkit qtxmlpatterns
|
2017-03-20 00:37:21 +00:00
|
|
|
python3 python3Packages.lxml ];
|
2014-10-07 14:53:21 +01:00
|
|
|
|
2016-07-05 11:58:26 +01:00
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/sigil" \
|
|
|
|
--prefix PYTHONPATH : $PYTHONPATH:$(toPythonPath ${python3Packages.lxml})
|
2014-10-07 14:53:21 +01:00
|
|
|
'';
|
|
|
|
|
2016-07-05 11:58:26 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-03-20 00:37:21 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-10-07 14:53:21 +01:00
|
|
|
description = "Free, open source, multi-platform ebook (ePub) editor";
|
2016-07-05 11:58:26 +01:00
|
|
|
homepage = https://github.com/Sigil-Ebook/Sigil/;
|
2017-03-20 00:37:21 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers =[ maintainers.ramkromberg ];
|
|
|
|
platforms = platforms.linux;
|
2014-10-07 14:53:21 +01:00
|
|
|
};
|
|
|
|
}
|