diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-04-18 14:40:23 +0300 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-04-18 14:40:23 +0300 |
commit | cdb1801e28b8e908174b49468702feaabb4cbc34 (patch) | |
tree | 0405ccdc33fc4df6af0a9cc06c3ff5489c818feb /pkgs/applications/office/PageEdit | |
parent | d9c199dbc61f21cc04a15f267c8b9a871281222b (diff) |
PageEdit: fix build on aarch64-darwin
Diffstat (limited to 'pkgs/applications/office/PageEdit')
-rw-r--r-- | pkgs/applications/office/PageEdit/default.nix | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/pkgs/applications/office/PageEdit/default.nix b/pkgs/applications/office/PageEdit/default.nix index 4d52782c857a7..b95eb6cb51e47 100644 --- a/pkgs/applications/office/PageEdit/default.nix +++ b/pkgs/applications/office/PageEdit/default.nix @@ -1,7 +1,7 @@ -{ lib, mkDerivation, fetchFromGitHub, cmake, qtsvg, qtwebengine, qttranslations }: +{ lib, stdenv, mkDerivation, fetchFromGitHub, cmake, qtsvg, qtwebengine, qttranslations, wrapQtAppsHook }: -mkDerivation rec { - pname = "PageEdit"; +stdenv.mkDerivation rec { + pname = "pageedit"; version = "1.9.20"; src = fetchFromGitHub { @@ -11,10 +11,21 @@ mkDerivation rec { hash = "sha256-naoflFANeMwabbdrNL3+ndvEXYT4Yqf+Mo77HcCexHE="; }; - nativeBuildInputs = [ cmake qttranslations ]; + nativeBuildInputs = [ cmake qttranslations wrapQtAppsHook ]; 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/"; |