2018-09-11 19:54:17 +00:00
|
|
|
{ stdenv, lib, darwin
|
|
|
|
, rustPlatform, fetchFromGitHub
|
|
|
|
, openssl, pkgconfig }:
|
2017-04-15 16:10:05 +00:00
|
|
|
|
2018-09-11 12:34:21 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "cargo-edit-${version}";
|
|
|
|
version = "0.3.0";
|
2017-04-15 16:10:05 +00:00
|
|
|
|
2018-09-11 12:34:21 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "killercup";
|
|
|
|
repo = "cargo-edit";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0ngxyzqy5pfc0fqbvqw7kd40jhqzp67qvpzvh3yggk9yxa1jzsp0";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoSha256 = "1j7fqswdx6f2i5wr0pdavdvcv18j1l27a8ighr75p7f54apa27l8";
|
2017-04-15 16:10:05 +00:00
|
|
|
|
2018-09-11 19:54:17 +00:00
|
|
|
nativeBuildInputs = lib.optional (!stdenv.isDarwin) pkgconfig;
|
|
|
|
buildInputs = lib.optional (!stdenv.isDarwin) openssl;
|
2018-09-11 12:34:21 +00:00
|
|
|
propagatedBuildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
2017-04-15 16:10:05 +00:00
|
|
|
|
2018-09-11 12:34:21 +00: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 ];
|
|
|
|
platforms = platforms.all;
|
2017-04-15 16:10:05 +00:00
|
|
|
};
|
|
|
|
}
|