depot/third_party/nixpkgs/pkgs/applications/editors/sigil/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

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 = "2.0.1";
src = fetchFromGitHub {
repo = "Sigil";
owner = "Sigil-Ebook";
rev = version;
sha256 = "sha256-d54N6Kb+xLMxlRwqxqWXnFGQCvUmSy9z6j86aV+VioU=";
};
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;
mainProgram = "sigil";
};
}