2018-09-11 20:54:17 +01:00
|
|
|
{ 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
|
|
|
|
2018-09-11 13:34:21 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-06-04 17:36:54 +01:00
|
|
|
pname = "cargo-edit";
|
2020-02-06 19:43:53 +00:00
|
|
|
version = "0.5.0";
|
2017-04-15 17:10:05 +01:00
|
|
|
|
2018-09-11 13:34:21 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "killercup";
|
2019-06-04 17:36:54 +01:00
|
|
|
repo = pname;
|
2018-09-11 13:34:21 +01:00
|
|
|
rev = "v${version}";
|
2020-02-06 19:43:53 +00:00
|
|
|
sha256 = "16gpljbzk6cibry9ssnl22xbcsx2cr57mrs3x3n6cfmldbp6bhbr";
|
2018-09-11 13:34:21 +01:00
|
|
|
};
|
|
|
|
|
2020-02-16 18:57:12 +00:00
|
|
|
cargoSha256 = "1zwkar914zyghky09lgk0s374m5d6yccn0m15bqlgxxyymg4b59y";
|
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
|
|
|
|
2018-09-11 13:34:21 +01: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 16:24:45 +00:00
|
|
|
maintainers = with maintainers; [ gerschtli jb55 filalex77 ];
|
2018-09-11 13:34:21 +01:00
|
|
|
platforms = platforms.all;
|
2017-04-15 17:10:05 +01:00
|
|
|
};
|
|
|
|
}
|