build(nix): make .#libdeltachat buildable on macOS

This commit is contained in:
link2xt
2024-03-09 19:10:11 +00:00
parent e9d7fe0561
commit 9f7defa8da

View File

@@ -301,6 +301,12 @@
pkgs.rustPlatform.cargoSetupHook
pkgs.cargo
];
buildInputs = pkgs.lib.optionals isDarwin [
pkgs.darwin.apple_sdk.frameworks.CoreFoundation
pkgs.darwin.apple_sdk.frameworks.Security
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
pkgs.libiconv
];
postInstall = ''
substituteInPlace $out/include/deltachat.h \