nixpkgs/pkgs/applications/editors/sigil/default.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

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