diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-05-10 08:27:30 +0200 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-05-10 02:56:24 -0400 |
commit | a5fd5c36ce3ee01cf7d527dc933867f3f0f02dd1 (patch) | |
tree | b50c3de6be0824eea6735b69539c0625b6335ad2 /pkgs/applications/office/beamerpresenter | |
parent | 76833b12065cb7f48b40b6c4320974b517cb66c2 (diff) |
beamerpresenter: fix darwin build
Diffstat (limited to 'pkgs/applications/office/beamerpresenter')
-rw-r--r-- | pkgs/applications/office/beamerpresenter/default.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/applications/office/beamerpresenter/default.nix b/pkgs/applications/office/beamerpresenter/default.nix index e9543a0959333..351609d8c0584 100644 --- a/pkgs/applications/office/beamerpresenter/default.nix +++ b/pkgs/applications/office/beamerpresenter/default.nix @@ -1,15 +1,17 @@ -{ lib, mkDerivation, fetchFromGitHub, installShellFiles, - qmake, qtbase, qtmultimedia, - poppler, mupdf, jbig2dec, openjpeg, gumbo, +{ lib, stdenv, fetchFromGitHub, installShellFiles, + qmake, qtbase, qtmultimedia, wrapQtAppsHook, + poppler, mupdf, freetype, jbig2dec, openjpeg, gumbo, renderer ? "mupdf" }: let renderers = { - mupdf.buildInputs = [ mupdf jbig2dec openjpeg gumbo ]; + mupdf.buildInputs = [ mupdf freetype jbig2dec openjpeg gumbo ]; poppler.buildInputs = [ poppler ]; }; -in mkDerivation rec { +in + +stdenv.mkDerivation rec { pname = "beamerpresenter"; version = "0.2.0"; @@ -20,7 +22,7 @@ in mkDerivation rec { sha256 = "10i5nc5b5syaqvsixam4lmfiz3b5cphbjfgfqavi5jilq769792a"; }; - nativeBuildInputs = [ qmake installShellFiles ]; + nativeBuildInputs = [ qmake installShellFiles wrapQtAppsHook ]; buildInputs = [ qtbase qtmultimedia ] ++ renderers.${renderer}.buildInputs; qmakeFlags = [ "RENDERER=${renderer}" ]; @@ -35,6 +37,10 @@ in mkDerivation rec { done ''; + postInstall = lib.optionalString stdenv.isDarwin '' + wrapQtApp "$out"/bin/beamerpresenter.app/Contents/MacOS/beamerpresenter + ''; + meta = with lib; { description = "Modular multi screen pdf presentation software respecting your window manager"; homepage = "https://github.com/stiglers-eponym/BeamerPresenter"; |