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

31 lines
968 B
Nix
Raw Normal View History

{ stdenv, lib, darwin
, rustPlatform, fetchFromGitHub
2019-12-05 16:24:22 +00:00
, openssl, pkg-config, libiconv }:
2017-04-15 17:10:05 +01:00
rustPlatform.buildRustPackage rec {
2019-06-04 17:36:54 +01:00
pname = "cargo-edit";
version = "0.6.0";
2017-04-15 17:10:05 +01:00
src = fetchFromGitHub {
owner = "killercup";
2019-06-04 17:36:54 +01:00
repo = pname;
rev = "v${version}";
sha256 = "19jnvsbddn52ibjv48jyfss25gg9mmvxzfhbr7s7bqyf3bq68jbm";
};
cargoSha256 = "0b06jsilj87rnr1qlarn29hnz0i9p455fdxg6nf6r2fli2xpv1f0";
2017-04-15 17:10:05 +01:00
2019-12-05 16:24:22 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
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 filalex77 killercup ];
platforms = platforms.all;
2017-04-15 17:10:05 +01:00
};
}