mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ lib, mkDerivation, fetchFromGitHub, cmake, pkg-config, makeWrapper
|
|
, boost, xercesc, qtbase, qttools, qtwebengine, qtxmlpatterns
|
|
, python3Packages
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "sigil";
|
|
version = "1.9.20";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "Sigil";
|
|
owner = "Sigil-Ebook";
|
|
rev = version;
|
|
sha256 = "sha256-rpJ+HBYmGuhxnZbJn59mc+IokBc5834X2uyriIGnsqA=";
|
|
};
|
|
|
|
pythonPath = with python3Packages; [ lxml ];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
|
|
|
buildInputs = [
|
|
boost xercesc qtbase qttools qtwebengine qtxmlpatterns
|
|
python3Packages.lxml
|
|
];
|
|
|
|
prePatch = ''
|
|
sed -i '/^QTLIB_DIR=/ d' src/Resource_Files/bash/sigil-sh_install
|
|
'';
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
preFixup = ''
|
|
wrapProgram "$out/bin/sigil" \
|
|
--prefix PYTHONPATH : $PYTHONPATH \
|
|
''${qtWrapperArgs[@]}
|
|
'';
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|