2021-11-03 00:17:21 +00:00
|
|
|
{ lib
|
2020-10-12 04:19:41 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2021-11-03 00:17:21 +00:00
|
|
|
, zlib
|
|
|
|
, stdenv
|
2020-10-12 04:19:41 +00:00
|
|
|
, libiconv
|
2020-10-13 06:51:35 +00:00
|
|
|
, Security
|
2020-10-12 04:19:41 +00:00
|
|
|
}:
|
2017-04-15 16:10:05 +00:00
|
|
|
|
2018-09-11 12:34:21 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-06-04 16:36:54 +00:00
|
|
|
pname = "cargo-edit";
|
2021-11-03 00:17:21 +00:00
|
|
|
version = "0.8.0";
|
2017-04-15 16:10:05 +00:00
|
|
|
|
2018-09-11 12:34:21 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "killercup";
|
2019-06-04 16:36:54 +00:00
|
|
|
repo = pname;
|
2018-09-11 12:34:21 +00:00
|
|
|
rev = "v${version}";
|
2021-11-03 00:17:21 +00:00
|
|
|
hash = "sha256-n9Ei1kpbDqOogNJJVvg9DRAPMVGNChCGGiuCVsuK3/8=";
|
2018-09-11 12:34:21 +00:00
|
|
|
};
|
|
|
|
|
2021-11-03 00:17:21 +00:00
|
|
|
cargoSha256 = "sha256-6546jD+zDoScrJmpw5xtNdWeIPJ9Ma0bcIdnI1kFmu8=";
|
2017-04-15 16:10:05 +00:00
|
|
|
|
2020-10-16 23:18:53 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-10-12 04:19:41 +00:00
|
|
|
|
|
|
|
buildInputs = [ openssl zlib ] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
libiconv
|
2020-10-13 06:51:35 +00:00
|
|
|
Security
|
2020-10-12 04:19:41 +00:00
|
|
|
];
|
2019-12-04 12:14:34 +00:00
|
|
|
|
2020-03-21 12:15:06 +00:00
|
|
|
doCheck = false; # integration tests depend on changing cargo config
|
|
|
|
|
2018-09-11 12:34:21 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A utility for managing cargo dependencies from the command line";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/killercup/cargo-edit";
|
2021-11-03 00:17:21 +00:00
|
|
|
changelog = "https://github.com/killercup/cargo-edit/blob/v${version}/CHANGELOG.md";
|
2020-03-21 12:15:06 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2021-11-03 00:17:21 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne figsoda gerschtli jb55 killercup ];
|
2017-04-15 16:10:05 +00:00
|
|
|
};
|
|
|
|
}
|