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

44 lines
1.1 KiB
Nix
Raw Normal View History

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}";
2016-07-05 11:58:26 +01:00
version = "0.9.6";
2014-10-07 14:53:21 +01:00
2016-07-05 11:58:26 +01:00
src = fetchFromGitHub {
sha256 = "0hihd5f3avpdvxwp5j80qdg74zbw7p20y6j9q8cw7wd0bak58h9c";
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 ];
2014-10-07 14:53:21 +01:00
buildInputs = [
2016-07-05 11:58:26 +01:00
cmake pkgconfig
boost xercesc qtbase qttools qtwebkit qtxmlpatterns
python3 python3Packages.lxml makeWrapper
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;
2014-10-07 14:53:21 +01:00
meta = {
description = "Free, open source, multi-platform ebook (ePub) editor";
2016-07-05 11:58:26 +01:00
homepage = https://github.com/Sigil-Ebook/Sigil/;
2014-10-07 14:53:21 +01:00
license = stdenv.lib.licenses.gpl3;
2014-10-07 15:51:25 +01:00
inherit version;
2016-07-05 11:58:26 +01:00
maintainers = with stdenv.lib.maintainers; [ ramkromberg ];
platforms = with stdenv.lib.platforms; linux;
2014-10-07 14:53:21 +01:00
};
}