cargo-edit: fix Darwin build
This commit is contained in:
parent
cfed29bfcb
commit
80ce132382
@ -1,6 +1,14 @@
|
|||||||
{ stdenv, lib, darwin
|
{ stdenv
|
||||||
, rustPlatform, fetchFromGitHub
|
, lib
|
||||||
, openssl, pkg-config, libiconv }:
|
, darwin
|
||||||
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pkg-config
|
||||||
|
, xcbuild
|
||||||
|
, openssl
|
||||||
|
, libiconv
|
||||||
|
, zlib
|
||||||
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "cargo-edit";
|
pname = "cargo-edit";
|
||||||
@ -15,8 +23,18 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoSha256 = "1h1sy54p7zxijydnhzvkxli90d72biv1inni17licb0vb9dihmnf";
|
cargoSha256 = "1h1sy54p7zxijydnhzvkxli90d72biv1inni17licb0vb9dihmnf";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.isDarwin [
|
||||||
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
|
# The cc crate runs xcbuild. This dependency can be removed once
|
||||||
|
# the following PR is merged from staging into master:
|
||||||
|
#
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/97000
|
||||||
|
xcbuild
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [ openssl zlib ] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
libiconv
|
||||||
|
darwin.apple_sdk.frameworks.Security
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = false; # integration tests depend on changing cargo config
|
doCheck = false; # integration tests depend on changing cargo config
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user