1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/package-management/cargo-download/default.nix
2019-08-20 23:00:21 +02:00

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;
};
};
}