use back apple sdk 11.0 on x86_64-darwin

This commit is contained in:
Clément DOUIN 2024-10-29 12:09:41 +01:00
parent 7b55da8c40
commit c44cac50eb
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72

View file

@ -75,10 +75,10 @@
x86_64-darwin.x86_64-darwin = { x86_64-darwin.x86_64-darwin = {
rustTarget = "x86_64-apple-darwin"; rustTarget = "x86_64-apple-darwin";
mkPackage = { pkgs, ... }: package: mkPackage = { pkgs, ... }: package:
let inherit (pkgs.darwin.apple_sdk.frameworks) AppKit Cocoa; let inherit (pkgs.darwin.apple_sdk_11_0.frameworks) AppKit Cocoa Security;
in package // { in package // {
buildInputs = [ Cocoa ]; buildInputs = [ AppKit Cocoa Security ];
NIX_LDFLAGS = "-F${AppKit}/Library/Frameworks -framework AppKit"; NIX_LDFLAGS = "-F${AppKit}/Library/Frameworks -framework AppKit -F${Cocoa}/Library/Frameworks -framework Cocoa -F${AppKit}/Library/Frameworks -framework Security";
}; };
}; };