More darwin support

This commit is contained in:
Nathan McCarty 2023-05-16 16:20:23 -04:00
parent dc78ed045a
commit 2782d18ed2
No known key found for this signature in database
1 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,12 @@
naersk-lib.buildPackage { naersk-lib.buildPackage {
pname = source.pname; pname = source.pname;
src = pkgs.fetchCrate source; src = pkgs.fetchCrate source;
buildInputs = with pkgs; [ pkg-config openssl ]; buildInputs = with pkgs;
[ pkg-config openssl ] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
pkgs.libiconv
darwin.apple_sdk.frameworks.SystemConfiguration
];
}) sources) // }) sources) //
# Packages that naersk has trouble building due to https://github.com/nix-community/naersk/issues/263 # Packages that naersk has trouble building due to https://github.com/nix-community/naersk/issues/263
{ {