2018-06-01 00:53:54 +01:00
|
|
|
{ stdenv, pkgs, darwin, defaultCrateOverrides, fetchFromGitHub }:
|
2017-04-15 17:10:05 +01:00
|
|
|
|
2018-06-01 00:53:54 +01:00
|
|
|
((import ./cargo-edit.nix { inherit pkgs; }).cargo_edit {}).override {
|
2018-05-31 13:14:25 +01:00
|
|
|
crateOverrides = defaultCrateOverrides // {
|
|
|
|
cargo-edit = attrs: rec {
|
|
|
|
name = "cargo-edit-${version}";
|
|
|
|
version = "0.2.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}";
|
|
|
|
sha256 = "1jxppbb7s50pwg24qxf79fqvm1clwm2zdnv0xlkay7y05nd5bc0c";
|
|
|
|
};
|
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
|
|
|
};
|
|
|
|
}
|