mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 02:10:27 +08:00
[Backport release-25.05] sigil: 2.4.2 -> 2.6.2 (#442558)
This commit is contained in:
@@ -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/";
|
||||
|
||||
Reference in New Issue
Block a user