cargo-edit: add pkgconfig/openssl on non-darwin
This commit is contained in:
parent
902dea15ec
commit
ffde15da8e
1 changed files with 5 additions and 1 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue