2023-07-29 12:57:50 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, qtsvg, qtwebengine, wrapQtAppsHook, qttools }:
|
2022-01-16 18:31:03 +01:00
|
|
|
|
2023-04-18 13:40:23 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pageedit";
|
2023-08-23 11:30:43 +02:00
|
|
|
version = "2.0.0";
|
2022-01-16 18:31:03 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Sigil-Ebook";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-08-23 11:30:43 +02:00
|
|
|
hash = "sha256-zwOSt1eyvuuqfQ1G2bCB4yj6GgixFRc2FLOgcCrdg3Q=";
|
2022-01-16 18:31:03 +01:00
|
|
|
};
|
|
|
|
|
2023-07-29 12:57:50 +02:00
|
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook qttools ];
|
2022-01-16 18:31:03 +01:00
|
|
|
propagatedBuildInputs = [ qtsvg qtwebengine ];
|
2022-07-04 03:26:36 +02:00
|
|
|
cmakeFlags = [ "-DINSTALL_BUNDLED_DICTS=0" ];
|
2022-01-16 18:31:03 +01:00
|
|
|
|
2023-04-18 13:40:23 +02: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 18:31:03 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "ePub XHTML Visual Editor";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "pageedit";
|
2022-01-16 18:31:03 +01:00
|
|
|
homepage = "https://sigil-ebook.com/pageedit/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.pasqui23 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|