[Backport release-25.05] sigil: 2.4.2 -> 2.6.2 (#442558)

This commit is contained in:
Matthias Beyer
2025-09-13 10:19:13 +02:00
committed by GitHub

View File

@@ -12,13 +12,13 @@
stdenv.mkDerivation rec {
pname = "sigil";
version = "2.4.2";
version = "2.6.2";
src = fetchFromGitHub {
repo = "Sigil";
owner = "Sigil-Ebook";
tag = version;
hash = "sha256-/lnSNamLkPLG8tn0w8F0zFyypMUXyMhgxA2WyQFegKw=";
hash = "sha256-3+ODd0/kkXfAchsErLjy6FDHoyVP9VyxbINKMn3N/PM=";
};
pythonPath = with python3Packages; [ lxml ];
@@ -57,10 +57,28 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
dontWrapQtApps = true;
preFixup = ''
qtWrapperArgs+=(--prefix PYTHONPATH : "$PYTHONPATH")
'';
fixupPhase =
let
sigil =
if stdenv.hostPlatform.isDarwin then
"$out/Applications/Sigil.app/Contents/MacOS/Sigil"
else
"$out/bin/sigil";
in
''
runHook preFixup
wrapQtApp "${sigil}"
runHook postFixup
'';
meta = {
description = "Free, open source, multi-platform ebook (ePub) editor";
homepage = "https://github.com/Sigil-Ebook/Sigil/";