diff --git a/flake.nix b/flake.nix index 0935610..2178d69 100644 --- a/flake.nix +++ b/flake.nix @@ -54,12 +54,10 @@ ]; buildInputs = with pkgs; [ openssl - ]; + ] ++ optionals pkgs.stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc; LD_LIBRARY_PATH = makeLibraryPath buildInputs; - - RUST_LOG = ""; }; }); }; diff --git a/package.nix b/package.nix index ba538c7..063ac9f 100644 --- a/package.nix +++ b/package.nix @@ -3,7 +3,9 @@ , gitignore , pkg-config +, darwin , openssl +, stdenv }: let @@ -21,7 +23,8 @@ rustPlatform.buildRustPackage { cargoLock = { lockFile = "${src}/Cargo.lock"; }; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl ]; + buildInputs = [ openssl ] + ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; meta = { inherit (cargoTOML.package) description homepage license;