nixpkgs/pkgs/applications/office/PageEdit/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, qtsvg, qtwebengine, wrapQtAppsHook, qttools }:
2023-04-18 11:40:23 +00:00
stdenv.mkDerivation rec {
pname = "pageedit";
2023-08-23 09:30:43 +00:00
version = "2.0.0";
src = fetchFromGitHub {
owner = "Sigil-Ebook";
repo = pname;
rev = version;
2023-08-23 09:30:43 +00:00
hash = "sha256-zwOSt1eyvuuqfQ1G2bCB4yj6GgixFRc2FLOgcCrdg3Q=";
};
nativeBuildInputs = [ cmake wrapQtAppsHook qttools ];
propagatedBuildInputs = [ qtsvg qtwebengine ];
cmakeFlags = [ "-DINSTALL_BUNDLED_DICTS=0" ];
2023-04-18 11:40:23 +00:00
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 = with lib; {
description = "ePub XHTML Visual Editor";
mainProgram = "pageedit";
homepage = "https://sigil-ebook.com/pageedit/";
license = licenses.gpl3Plus;
maintainers = [ maintainers.pasqui23 ];
platforms = platforms.all;
};
}