3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/sigil/default.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, mkDerivation, fetchFromGitHub, cmake, pkgconfig, makeWrapper
, boost, xercesc, hunspell, zlib, pcre16
, qtbase, qttools, qtwebengine, qtxmlpatterns
, python3Packages
2014-10-07 14:53:21 +01:00
}:
mkDerivation rec {
pname = "sigil";
version = "1.3.0";
2014-10-07 14:53:21 +01:00
2016-07-05 11:58:26 +01:00
src = fetchFromGitHub {
repo = "Sigil";
owner = "Sigil-Ebook";
rev = version;
sha256 = "02bkyi9xpaxdcivm075y3praxgvfay9z0189gvr6g8yc3ml1miyr";
2014-10-07 14:53:21 +01:00
};
2016-07-05 11:58:26 +01:00
pythonPath = with python3Packages; [ lxml ];
2017-03-20 00:37:21 +00:00
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
2014-10-07 14:53:21 +01:00
buildInputs = [
boost xercesc qtbase qttools qtwebengine qtxmlpatterns
python3Packages.lxml
];
prePatch = ''
sed -i '/^QTLIB_DIR=/ d' src/Resource_Files/bash/sigil-sh_install
'';
dontWrapQtApps = true;
2014-10-07 14:53:21 +01:00
2016-07-05 11:58:26 +01:00
preFixup = ''
wrapProgram "$out/bin/sigil" \
--prefix PYTHONPATH : $PYTHONPATH \
''${qtWrapperArgs[@]}
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";
homepage = "https://github.com/Sigil-Ebook/Sigil/";
2017-03-20 00:37:21 +00:00
license = licenses.gpl3;
# currently unmaintained
2017-03-20 00:37:21 +00:00
platforms = platforms.linux;
2014-10-07 14:53:21 +01:00
};
}