From af0278308ae5ec73e17d4e7778f0af461f5b624a Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Wed, 1 Jun 2022 16:48:25 +0300 Subject: [PATCH] sile: Add passthru, and change some pre/post hooks. --- pkgs/tools/typesetting/sile/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/typesetting/sile/default.nix b/pkgs/tools/typesetting/sile/default.nix index 4ab4ae7c0f2e..565b0345e50a 100644 --- a/pkgs/tools/typesetting/sile/default.nix +++ b/pkgs/tools/typesetting/sile/default.nix @@ -59,19 +59,23 @@ stdenv.mkDerivation rec { makeWrapper ]; buildInputs = [ + luaEnv harfbuzz icu fontconfig libiconv - luaEnv ] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.AppKit ; checkInputs = [ poppler_utils ]; + passthru = { + # So it will be easier to inspect this environment, in comparison to others + inherit luaEnv; + }; - preConfigure = '' + postPatch = '' patchShebangs build-aux/*.sh '' + lib.optionalString stdenv.isDarwin '' sed -i -e 's|@import AppKit;|#import |' src/macfonts.m