@@ -1,4 +1,6 @@
1−{ stdenv, lib, darwin, rustPlatform, fetchFromGitHub }:
1+{ stdenv, lib, darwin
2+, rustPlatform, fetchFromGitHub
3+, openssl, pkgconfig }:
24
35rustPlatform.buildRustPackage rec {
46 name = "cargo-edit-${version}";
@@ -13,6 +15,8 @@ rustPlatform.buildRustPackage rec {
1315
1416 cargoSha256 = "1j7fqswdx6f2i5wr0pdavdvcv18j1l27a8ighr75p7f54apa27l8";
1517
18+ nativeBuildInputs = lib.optional (!stdenv.isDarwin) pkgconfig;
19+ buildInputs = lib.optional (!stdenv.isDarwin) openssl;
1620 propagatedBuildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
1721
1822 meta = with lib; {