From ffde15da8efcd272edaa864e1b0d8dd72e82fc9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 11 Sep 2018 20:54:17 +0100 Subject: [PATCH] cargo-edit: add pkgconfig/openssl on non-darwin --- pkgs/tools/package-management/cargo-edit/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; {