5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
36 lines
998 B
Nix
36 lines
998 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, qtsvg, qtwebengine, wrapQtAppsHook, qttools }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pageedit";
|
|
version = "2.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Sigil-Ebook";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-zwOSt1eyvuuqfQ1G2bCB4yj6GgixFRc2FLOgcCrdg3Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook qttools ];
|
|
propagatedBuildInputs = [ qtsvg qtwebengine ];
|
|
cmakeFlags = [ "-DINSTALL_BUNDLED_DICTS=0" ];
|
|
|
|
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;
|
|
|
|
meta = with lib; {
|
|
description = "ePub XHTML Visual Editor";
|
|
homepage = "https://sigil-ebook.com/pageedit/";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.pasqui23 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|