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

41 lines
944 B
Nix
Raw Normal View History

2020-10-12 04:19:41 +00:00
{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, libiconv
, Security
2020-10-12 04:19:41 +00:00
, zlib
}:
2017-04-15 16:10:05 +00:00
rustPlatform.buildRustPackage rec {
2019-06-04 16:36:54 +00:00
pname = "cargo-edit";
2020-10-04 01:32:54 +00:00
version = "0.7.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}";
2020-10-04 01:32:54 +00:00
hash = "sha256:0fh1lq793k4ddpqsf2av447hcb74vcq53afkm3g4672k48mjjw1y";
};
cargoSha256 = "0ah3zjx36ibax4gi66g13finh4m2k0aidxkg2nxx1c2aqj847mm1";
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";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ gerschtli jb55 Br1ght0ne killercup ];
2017-04-15 16:10:05 +00:00
};
}