Merge pull request #175749 from doronbehar/pkg/sile

This commit is contained in:
Doron Behar 2022-06-04 17:54:34 +03:00 committed by GitHub
commit 2fe432c3fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,19 +59,23 @@ stdenv.mkDerivation rec {
makeWrapper makeWrapper
]; ];
buildInputs = [ buildInputs = [
luaEnv
harfbuzz harfbuzz
icu icu
fontconfig fontconfig
libiconv libiconv
luaEnv
] ]
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.AppKit ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.AppKit
; ;
checkInputs = [ checkInputs = [
poppler_utils poppler_utils
]; ];
passthru = {
# So it will be easier to inspect this environment, in comparison to others
inherit luaEnv;
};
preConfigure = '' postPatch = ''
patchShebangs build-aux/*.sh patchShebangs build-aux/*.sh
'' + lib.optionalString stdenv.isDarwin '' '' + lib.optionalString stdenv.isDarwin ''
sed -i -e 's|@import AppKit;|#import <AppKit/AppKit.h>|' src/macfonts.m sed -i -e 's|@import AppKit;|#import <AppKit/AppKit.h>|' src/macfonts.m