nixpkgs/pkgs/tools/package-management/cargo-edit/default.nix

42 lines
1.0 KiB
Nix
Raw Normal View History

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
, Security
2020-10-12 04:19:41 +00:00
}:
2017-04-15 16:10:05 +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
src = fetchFromGitHub {
owner = "killercup";
2019-06-04 16:36:54 +00:00
repo = pname;
rev = "v${version}";
2021-11-03 00:17:21 +00:00
hash = "sha256-n9Ei1kpbDqOogNJJVvg9DRAPMVGNChCGGiuCVsuK3/8=";
};
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
Security
2020-10-12 04:19:41 +00:00
];
2019-12-04 12:14:34 +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-11-03 00:17:21 +00:00
changelog = "https://github.com/killercup/cargo-edit/blob/v${version}/CHANGELOG.md";
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
};
}