cargo-c: unvendor curl dependency

Changed files
+13 -3
pkgs
development
tools
rust
cargo-c
+13 -3
pkgs/development/tools/rust/cargo-c/default.nix
···
{ rustPlatform, stdenv, lib, fetchFromGitHub, fetchurl
-
, pkg-config, openssl
+
, pkg-config, curl, openssl
, CoreFoundation, libiconv, Security
}:
···
cargoSha256 = "0c0vn2pcy5px02mc0l4a3w7z9n8hc6br5w3ww6nrav5w6911jp52";
-
nativeBuildInputs = [ pkg-config ];
-
buildInputs = [ openssl ]
+
nativeBuildInputs = [ pkg-config (lib.getDev curl) ];
+
buildInputs = [ openssl curl ]
++ lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ];
+
+
# Ensure that we are avoiding build of the curl vendored in curl-sys
+
doInstallCheck = stdenv.hostPlatform.libc == "glibc";
+
installCheckPhase = ''
+
runHook preInstallCheck
+
+
ldd "$out/bin/cargo-cbuild" | grep libcurl.so
+
+
runHook postInstallCheck
+
'';
meta = with lib; {
description = "A cargo subcommand to build and install C-ABI compatibile dynamic and static libraries";