2018-09-11 21:54:17 +02:00
|
|
|
{ stdenv, lib, darwin
|
|
|
|
, rustPlatform, fetchFromGitHub
|
2019-12-05 17:24:22 +01:00
|
|
|
, openssl, pkg-config, libiconv }:
|
2017-04-15 18:10:05 +02:00
|
|
|
|
2018-09-11 14:34:21 +02:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-06-04 18:36:54 +02:00
|
|
|
pname = "cargo-edit";
|
2020-02-06 20:43:53 +01:00
|
|
|
version = "0.5.0";
|
2017-04-15 18:10:05 +02:00
|
|
|
|
2018-09-11 14:34:21 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "killercup";
|
2019-06-04 18:36:54 +02:00
|
|
|
repo = pname;
|
2018-09-11 14:34:21 +02:00
|
|
|
rev = "v${version}";
|
2020-02-06 20:43:53 +01:00
|
|
|
sha256 = "16gpljbzk6cibry9ssnl22xbcsx2cr57mrs3x3n6cfmldbp6bhbr";
|
2018-09-11 14:34:21 +02:00
|
|
|
};
|
|
|
|
|
2020-02-06 20:43:53 +01:00
|
|
|
cargoSha256 = "1cjpbfgbqzlfs5hck2j3d2v719fwandpnc7bdk4243j7j0k1ng9q";
|
2017-04-15 18:10:05 +02:00
|
|
|
|
2019-12-05 17:24:22 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
|
2019-12-04 13:14:34 +01:00
|
|
|
|
2018-09-11 14:34:21 +02: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 ];
|
2019-12-05 17:24:45 +01:00
|
|
|
maintainers = with maintainers; [ gerschtli jb55 filalex77 ];
|
2018-09-11 14:34:21 +02:00
|
|
|
platforms = platforms.all;
|
2017-04-15 18:10:05 +02:00
|
|
|
};
|
|
|
|
}
|