Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
qt6Packages,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "pageedit";
|
|
version = "2.6.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Sigil-Ebook";
|
|
repo = "pageedit";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-9+kWfyOfwbWh41cTXpP0raCY/dblQZP0PWFzGV+f4dY=";
|
|
};
|
|
|
|
nativeBuildInputs = with qt6Packages; [
|
|
cmake
|
|
wrapQtAppsHook
|
|
qttools
|
|
];
|
|
|
|
propagatedBuildInputs = with qt6Packages; [
|
|
qtsvg
|
|
qtwebengine
|
|
];
|
|
|
|
cmakeFlags = [ "-DINSTALL_BUNDLED_DICTS=0" ];
|
|
|
|
installPhase =
|
|
if stdenv.hostPlatform.isDarwin then
|
|
''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/Applications
|
|
cp -r bin/PageEdit.app $out/Applications
|
|
makeWrapper $out/Applications/PageEdit.app/Contents/MacOS/PageEdit $out/bin/pageedit
|
|
|
|
runHook postInstall
|
|
''
|
|
else
|
|
null;
|
|
|
|
meta = {
|
|
description = "EPUB XHTML Visual Editor";
|
|
mainProgram = "pageedit";
|
|
homepage = "https://sigil-ebook.com/pageedit/";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = [ lib.maintainers.pasqui23 ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|