cargo-edit: add pkgconfig/openssl on non-darwin
This commit is contained in:
parent
902dea15ec
commit
ffde15da8e
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, lib, darwin, rustPlatform, fetchFromGitHub }:
|
{ stdenv, lib, darwin
|
||||||
|
, rustPlatform, fetchFromGitHub
|
||||||
|
, openssl, pkgconfig }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
name = "cargo-edit-${version}";
|
name = "cargo-edit-${version}";
|
||||||
@ -13,6 +15,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "1j7fqswdx6f2i5wr0pdavdvcv18j1l27a8ighr75p7f54apa27l8";
|
cargoSha256 = "1j7fqswdx6f2i5wr0pdavdvcv18j1l27a8ighr75p7f54apa27l8";
|
||||||
|
|
||||||
|
nativeBuildInputs = lib.optional (!stdenv.isDarwin) pkgconfig;
|
||||||
|
buildInputs = lib.optional (!stdenv.isDarwin) openssl;
|
||||||
propagatedBuildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
propagatedBuildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user