add missing darwin frameworks

This commit is contained in:
Clément DOUIN 2024-10-29 16:56:24 +01:00
parent d54e2b31b7
commit ff1996107b
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 = {
rustTarget = "x86_64-apple-darwin";
mkPackage = { pkgs, ... }: package:
let inherit (pkgs.darwin.apple_sdk_11_0.frameworks) AppKit Cocoa Security;
let inherit (pkgs.darwin.apple_sdk_11_0.frameworks) AppKit Cocoa CoreFoundation;
in package // {
buildInputs = [ AppKit Cocoa Security ];
NIX_LDFLAGS = "-F${AppKit}/Library/Frameworks -framework AppKit -F${Cocoa}/Library/Frameworks -framework Cocoa -F${AppKit}/Library/Frameworks -framework Security";
buildInputs = [ AppKit Cocoa CoreFoundation ];
NIX_LDFLAGS = "-F${AppKit}/Library/Frameworks -framework AppKit -F${Cocoa}/Library/Frameworks -framework Cocoa -F${CoreFoundation}/Library/Frameworks -framework CoreFoundation";
};
};