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

29 lines
869 B
Nix
Raw Normal View History

{ stdenv, lib, darwin
, rustPlatform, fetchFromGitHub
2019-12-05 08:24:22 -08:00
, openssl, pkg-config, libiconv }:
2017-04-15 09:10:05 -07:00
rustPlatform.buildRustPackage rec {
2019-06-04 09:36:54 -07:00
pname = "cargo-edit";
2019-12-05 08:24:22 -08:00
version = "0.4.2";
2017-04-15 09:10:05 -07:00
src = fetchFromGitHub {
owner = "killercup";
2019-06-04 09:36:54 -07:00
repo = pname;
rev = "v${version}";
2019-12-05 08:24:22 -08:00
sha256 = "0y0sq0kll6bg0qrfdyas8rcx5dj50j9f05qx244kv7vqxp2q25jq";
};
2019-12-05 08:24:22 -08:00
cargoSha256 = "0prd53p20cha2y2qp8dmq0ywd32f6jm8mszdkbi4x606dj9bcgbl";
2017-04-15 09:10:05 -07:00
2019-12-05 08:24:22 -08:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
2019-12-04 04:14:34 -08:00
meta = with lib; {
description = "A utility for managing cargo dependencies from the command line";
homepage = https://github.com/killercup/cargo-edit;
license = with licenses; [ mit ];
maintainers = with maintainers; [ gerschtli jb55 filalex77 ];
platforms = platforms.all;
2017-04-15 09:10:05 -07:00
};
}