libsecurity_generic: fix apple_sdk lookup

apple_sdk is now multiple output.
This commit is contained in:
Matthew Justin Bauer 2018-06-26 13:25:06 -04:00 committed by GitHub
parent a9131a1395
commit fe9f4abec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ name: version: sha256: args: let
grep -Rl MacTypes.h . | while read file; do
substituteInPlace "''$file" --replace \
'<CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h>' \
'"${pkgs.darwin.apple_sdk.sdk.out}/include/MacTypes.h"'
'"${stdenv.lib.getDev pkgs.darwin.apple_sdk.sdk}/include/MacTypes.h"'
done || true # grep returns 1 if it can't find the string
'';
preBuild = ''