nix: macos build deps
This commit is contained in:
parent
cbd67821fc
commit
54f19683c5
1 changed files with 9 additions and 3 deletions
12
package.nix
12
package.nix
|
@ -1,11 +1,17 @@
|
||||||
{ rustPlatform
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
|
||||||
|
, rustPlatform
|
||||||
|
|
||||||
# Runtime Deps
|
# Runtime Deps
|
||||||
, sqlite
|
, sqlite
|
||||||
|
, openssl
|
||||||
|
|
||||||
# Build Deps
|
# Build Deps
|
||||||
, openssl
|
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
|
||||||
|
# Darwin Build Deps
|
||||||
|
, darwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -23,7 +29,7 @@ rustPlatform.buildRustPackage {
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
openssl
|
openssl
|
||||||
pkg-config
|
pkg-config
|
||||||
];
|
] ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
openssl
|
openssl
|
||||||
|
|
Loading…
Reference in a new issue