2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
2020-10-16 20:44:37 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2021-12-06 16:07:01 +00:00
|
|
|
, zlib
|
|
|
|
, stdenv
|
2020-10-16 20:44:37 +00:00
|
|
|
, Security
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-edit";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "0.11.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "killercup";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
hash = "sha256-EGClr2HQ11bX6WTvu9ZxPo4hA0Q5Sl9t0Gw8/SltxDI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
cargoSha256 = "sha256-Ph6W2RyNjVfnkon4YyAi4VvQWt/McKelUzlRD15Yysk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-27 00:29:36 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
buildInputs = [ openssl zlib ] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false; # integration tests depend on changing cargo config
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A utility for managing cargo dependencies from the command line";
|
|
|
|
homepage = "https://github.com/killercup/cargo-edit";
|
2021-12-06 16:07:01 +00:00
|
|
|
changelog = "https://github.com/killercup/cargo-edit/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne figsoda gerschtli jb55 killercup ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|