@ -129,9 +129,11 @@ let
# hardeningDisable additionally supports "all".
erroneousHardeningFlags = lib . subtractLists supportedHardeningFlags ( hardeningEnable ++ lib . remove " a l l " hardeningDisable ) ;
checkDependencyList = name : deps : lib . flip lib . imap1 deps ( index : dep :
checkDependencyList = checkDependencyList' [ ] ;
checkDependencyList' = positions : name : deps : lib . flip lib . imap1 deps ( index : dep :
if lib . isDerivation dep || isNull dep || builtins . typeOf dep == " p a t h " then dep
else throw " D e p e n d e n c y i s n o t o f a v a l i d t y p e : e l e m e n t ${ toString index } o f ${ name } f o r ${ attrs . name or attrs . pname } " ) ;
else if lib . isList dep then checkDependencyList' ( [ index ] ++ positions ) name dep
else throw " D e p e n d e n c y i s n o t o f a v a l i d t y p e : ${ lib . concatMapStrings ( ix : " e l e m e n t ${ toString ix } o f " ) ( [ index ] ++ positions ) } ${ name } f o r ${ attrs . name or attrs . pname } " ) ;
in if builtins . length erroneousHardeningFlags != 0
then abort ( " m k D e r i v a t i o n w a s c a l l e d w i t h u n s u p p o r t e d h a r d e n i n g f l a g s : " + lib . generators . toPretty { } {
inherit erroneousHardeningFlags hardeningDisable hardeningEnable supportedHardeningFlags ;