@ -112,7 +112,7 @@ let
# are absolute unless we go out of our way to make them relative (like with CF)
# TODO: This really wants to be in stdenv/darwin but we don't have hostPlatform
# there (yet?) so it goes here until then.
preHook = preHook + lib . optionalString buildPlatform . isDarwin ''
preHook = preHook + lib . optionalString buildPlatform . isDarwin ''
export NIX_DONT_SET_RPATH_FOR_BUILD = 1
'' + l i b . o p t i o n a l S t r i n g ( h o s t P l a t f o r m . i s D a r w i n | | ( h o s t P l a t f o r m . p a r s e d . k e r n e l . e x e c F o r m a t ! = l i b . s y s t e m s . p a r s e . e x e c F o r m a t s . e l f & & h o s t P l a t f o r m . p a r s e d . k e r n e l . e x e c F o r m a t ! = l i b . s y s t e m s . p a r s e . e x e c F o r m a t s . m a c h o ) ) ''
export NIX_DONT_SET_RPATH = 1
@ -168,6 +168,11 @@ let
inherit overrides ;
inherit cc hasCC ;
# Convenience for doing some very basic shell syntax checking by parsing a script
# without running any commands. Because this will also skip `shopt -s extglob`
# commands and extglob affects the Bash parser, we enable extglob always.
shellDryRun = " ${ stdenv . shell } - n - O e x t g l o b " ;
}
# Propagate any extra attributes. For instance, we use this to