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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, mkDerivation, fetchFromGitHub, cmake, pkg-config, makeWrapper
2021-11-13 22:28:25 +00:00
, boost, xercesc, qtbase, qttools, qtwebengine, qtxmlpatterns
, python3Packages
2014-10-07 13:53:21 +00:00
}:
mkDerivation rec {
pname = "sigil";
2022-12-23 06:12:07 +00:00
version = "1.9.20";
2014-10-07 13:53:21 +00:00
2016-07-05 10:58:26 +00:00
src = fetchFromGitHub {
repo = "Sigil";
owner = "Sigil-Ebook";
rev = version;
2022-12-23 06:12:07 +00:00
sha256 = "sha256-rpJ+HBYmGuhxnZbJn59mc+IokBc5834X2uyriIGnsqA=";
2014-10-07 13:53:21 +00:00
};
2016-07-05 10:58:26 +00:00
pythonPath = with python3Packages; [ lxml ];
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
2017-03-20 00:37:21 +00:00
2014-10-07 13:53:21 +00: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 13:53:21 +00:00
2016-07-05 10:58:26 +00:00
preFixup = ''
wrapProgram "$out/bin/sigil" \
--prefix PYTHONPATH : $PYTHONPATH \
''${qtWrapperArgs[@]}
2014-10-07 13:53:21 +00:00
'';
meta = with lib; {
2014-10-07 13:53:21 +00: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 13:53:21 +00:00
};
}