2018-09-05 15:33:57 +01:00
|
|
|
{ stdenv, lib, buildPlatform, fetchgit, fetchFromGitHub, darwin
|
|
|
|
, buildRustCrate, defaultCrateOverrides }:
|
2017-04-15 17:10:05 +01:00
|
|
|
|
2018-09-05 15:33:57 +01:00
|
|
|
((import ./Cargo.nix { inherit lib buildPlatform buildRustCrate fetchgit; }).cargo_edit {}).override {
|
2018-05-31 13:14:25 +01:00
|
|
|
crateOverrides = defaultCrateOverrides // {
|
|
|
|
cargo-edit = attrs: rec {
|
|
|
|
name = "cargo-edit-${version}";
|
2018-09-05 15:33:57 +01:00
|
|
|
version = "0.3.0";
|
2017-04-15 17:10:05 +01:00
|
|
|
|
2018-05-31 13:14:25 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "killercup";
|
|
|
|
repo = "cargo-edit";
|
|
|
|
rev = "v${version}";
|
2018-09-05 15:33:57 +01:00
|
|
|
sha256 = "0ngxyzqy5pfc0fqbvqw7kd40jhqzp67qvpzvh3yggk9yxa1jzsp0";
|
2018-05-31 13:14:25 +01:00
|
|
|
};
|
2017-04-15 17:10:05 +01:00
|
|
|
|
2018-05-31 13:14:25 +01:00
|
|
|
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
2017-04-15 17:10:05 +01:00
|
|
|
|
2018-05-31 13:14:25 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A utility for managing cargo dependencies from the command line";
|
|
|
|
homepage = https://github.com/killercup/cargo-edit;
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ gerschtli jb55 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
};
|
2017-04-15 17:10:05 +01:00
|
|
|
};
|
|
|
|
}
|