2023-04-18 11:40:23 +00:00
|
|
|
{ lib, stdenv, mkDerivation, fetchFromGitHub, cmake, qtsvg, qtwebengine, qttranslations, wrapQtAppsHook }:
|
2022-01-16 17:31:03 +00:00
|
|
|
|
2023-04-18 11:40:23 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pageedit";
|
2022-09-04 10:26:52 +00:00
|
|
|
version = "1.9.20";
|
2022-01-16 17:31:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Sigil-Ebook";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-09-04 10:26:52 +00:00
|
|
|
hash = "sha256-naoflFANeMwabbdrNL3+ndvEXYT4Yqf+Mo77HcCexHE=";
|
2022-01-16 17:31:03 +00:00
|
|
|
};
|
|
|
|
|
2023-04-18 11:40:23 +00:00
|
|
|
nativeBuildInputs = [ cmake qttranslations wrapQtAppsHook ];
|
2022-01-16 17:31:03 +00:00
|
|
|
propagatedBuildInputs = [ qtsvg qtwebengine ];
|
2022-07-04 01:26:36 +00:00
|
|
|
cmakeFlags = [ "-DINSTALL_BUNDLED_DICTS=0" ];
|
2022-01-16 17:31:03 +00:00
|
|
|
|
2023-04-18 11:40:23 +00:00
|
|
|
installPhase =
|
|
|
|
if stdenv.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;
|
|
|
|
|
2022-01-16 17:31:03 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "ePub XHTML Visual Editor";
|
|
|
|
homepage = "https://sigil-ebook.com/pageedit/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.pasqui23 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|