Skip to content

Commit 7ad6f0b

Browse files
samrosedarora
authored andcommitted
fix: build wrappers on aarch64-darwin
1 parent 78ac5a0 commit 7ad6f0b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

nix/ext/wrappers/default.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
, postgresql
77
, buildPgrxExtension_0_11_3
88
, cargo
9+
, darwin
910
}:
1011

1112
buildPgrxExtension_0_11_3 rec {
@@ -22,7 +23,11 @@ buildPgrxExtension_0_11_3 rec {
2223

2324
nativeBuildInputs = [ pkg-config cargo ];
2425

25-
buildInputs = [ openssl ];
26+
buildInputs = [ openssl ] ++ lib.optionals (stdenv.isDarwin) [
27+
darwin.apple_sdk.frameworks.CoreFoundation
28+
darwin.apple_sdk.frameworks.Security
29+
darwin.apple_sdk.frameworks.SystemConfiguration
30+
];
2631

2732
# Needed to get openssl-sys to use pkg-config.
2833
OPENSSL_NO_VENDOR = 1;
@@ -63,4 +68,4 @@ buildPgrxExtension_0_11_3 rec {
6368
platforms = postgresql.meta.platforms;
6469
license = licenses.postgresql;
6570
};
66-
}
71+
}

0 commit comments

Comments
 (0)