nixpkgs/pkgs/tools/package-management/cargo-download/default.nix

15 lines
521 B
Nix
Raw Normal View History

{ stdenv, lib, fetchgit, darwin, buildPlatform
2019-08-20 22:00:21 +01:00
, buildRustCrate, buildRustCrateHelpers, defaultCrateOverrides }:
2019-08-20 22:00:21 +01:00
((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;
};
};
}