2020-10-11 21:19:41 -07:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, libiconv
|
2020-10-12 23:51:35 -07:00
|
|
|
, Security
|
2020-10-11 21:19:41 -07:00
|
|
|
, zlib
|
|
|
|
}:
|
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-10-03 18:32:54 -07:00
|
|
|
version = "0.7.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-10-03 18:32:54 -07:00
|
|
|
hash = "sha256:0fh1lq793k4ddpqsf2av447hcb74vcq53afkm3g4672k48mjjw1y";
|
2018-09-11 05:34:21 -07:00
|
|
|
};
|
|
|
|
|
2020-10-03 18:32:54 -07:00
|
|
|
cargoSha256 = "1h1sy54p7zxijydnhzvkxli90d72biv1inni17licb0vb9dihmnf";
|
2017-04-15 09:10:05 -07:00
|
|
|
|
2020-10-16 16:18:53 -07:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-10-11 21:19:41 -07:00
|
|
|
|
|
|
|
buildInputs = [ openssl zlib ] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
libiconv
|
2020-10-12 23:51:35 -07:00
|
|
|
Security
|
2020-10-11 21:19:41 -07:00
|
|
|
];
|
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 ];
|
2020-11-17 03:02:06 -08:00
|
|
|
maintainers = with maintainers; [ gerschtli jb55 Br1ght0ne killercup ];
|
2017-04-15 09:10:05 -07:00
|
|
|
};
|
|
|
|
}
|