diff --git a/pkgs/tools/package-management/cargo-edit/default.nix b/pkgs/tools/package-management/cargo-edit/default.nix index 916dd26a6ab0..c0c1d19bfb62 100644 --- a/pkgs/tools/package-management/cargo-edit/default.nix +++ b/pkgs/tools/package-management/cargo-edit/default.nix @@ -1,4 +1,6 @@ -{ stdenv, lib, darwin, rustPlatform, fetchFromGitHub }: +{ stdenv, lib, darwin +, rustPlatform, fetchFromGitHub +, openssl, pkgconfig }: rustPlatform.buildRustPackage rec { name = "cargo-edit-${version}"; @@ -13,6 +15,8 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "1j7fqswdx6f2i5wr0pdavdvcv18j1l27a8ighr75p7f54apa27l8"; + nativeBuildInputs = lib.optional (!stdenv.isDarwin) pkgconfig; + buildInputs = lib.optional (!stdenv.isDarwin) openssl; propagatedBuildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; meta = with lib; {