1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 02:24:27 +00:00
nixpkgs/pkgs/applications/editors/sigil/default.nix
Robert Scott 1fb0a04c12 sigil: 0.9.14 -> 1.3.0
addressing CVE-2019-14452

package still needs some proper maintenance love e.g.
elimination of vendored libs. this will have to do
for now.
2020-08-15 21:51:56 +01:00

45 lines
1 KiB
Nix

{ stdenv, mkDerivation, fetchFromGitHub, cmake, pkgconfig, makeWrapper
, boost, xercesc, hunspell, zlib, pcre16
, qtbase, qttools, qtwebengine, qtxmlpatterns
, python3Packages
}:
mkDerivation rec {
pname = "sigil";
version = "1.3.0";
src = fetchFromGitHub {
repo = "Sigil";
owner = "Sigil-Ebook";
rev = version;
sha256 = "02bkyi9xpaxdcivm075y3praxgvfay9z0189gvr6g8yc3ml1miyr";
};
pythonPath = with python3Packages; [ lxml ];
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
buildInputs = [
boost xercesc qtbase qttools qtwebengine qtxmlpatterns
python3Packages.lxml
];
dontWrapQtApps = true;
preFixup = ''
wrapProgram "$out/bin/sigil" \
--prefix PYTHONPATH : $PYTHONPATH \
''${qtWrapperArgs[@]}
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Free, open source, multi-platform ebook (ePub) editor";
homepage = "https://github.com/Sigil-Ebook/Sigil/";
license = licenses.gpl3;
# currently unmaintained
platforms = platforms.linux;
};
}