mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
15 lines
521 B
Nix
15 lines
521 B
Nix
{ stdenv, lib, fetchgit, darwin, buildPlatform
|
|
, buildRustCrate, buildRustCrateHelpers, defaultCrateOverrides }:
|
|
|
|
((import ./Cargo.nix {
|
|
inherit lib buildPlatform buildRustCrate buildRustCrateHelpers fetchgit;
|
|
cratesIO = import ./crates-io.nix { inherit lib buildRustCrate buildRustCrateHelpers; };
|
|
}).cargo_download {}).override {
|
|
crateOverrides = defaultCrateOverrides // {
|
|
cargo-download = attrs: {
|
|
buildInputs = lib.optional stdenv.isDarwin
|
|
darwin.apple_sdk.frameworks.Security;
|
|
};
|
|
};
|
|
}
|