2018-09-11 12:54:17 -07:00
|
|
|
{ stdenv, lib, darwin
|
|
|
|
, rustPlatform, fetchFromGitHub
|
2019-12-05 08:24:22 -08:00
|
|
|
, openssl, pkg-config, libiconv }:
|
2017-04-15 09:10:05 -07:00
|
|
|
|
2018-09-11 05:34:21 -07:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-06-04 09:36:54 -07:00
|
|
|
pname = "cargo-edit";
|
2020-03-21 05:15:06 -07:00
|
|
|
version = "0.6.0";
|
2017-04-15 09:10:05 -07:00
|
|
|
|
2018-09-11 05:34:21 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "killercup";
|
2019-06-04 09:36:54 -07:00
|
|
|
repo = pname;
|
2018-09-11 05:34:21 -07:00
|
|
|
rev = "v${version}";
|
2020-03-21 05:15:06 -07:00
|
|
|
sha256 = "19jnvsbddn52ibjv48jyfss25gg9mmvxzfhbr7s7bqyf3bq68jbm";
|
2018-09-11 05:34:21 -07:00
|
|
|
};
|
|
|
|
|
2020-03-21 05:15:06 -07:00
|
|
|
cargoSha256 = "0b06jsilj87rnr1qlarn29hnz0i9p455fdxg6nf6r2fli2xpv1f0";
|
2017-04-15 09:10:05 -07:00
|
|
|
|
2019-12-05 08:24:22 -08:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
|
2019-12-04 04:14:34 -08:00
|
|
|
|
2020-03-21 05:15:06 -07:00
|
|
|
doCheck = false; # integration tests depend on changing cargo config
|
|
|
|
|
2018-09-11 05:34:21 -07:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A utility for managing cargo dependencies from the command line";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/killercup/cargo-edit";
|
2020-03-21 05:15:06 -07:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ gerschtli jb55 filalex77 killercup ];
|
2017-04-15 09:10:05 -07:00
|
|
|
};
|
|
|
|
}
|