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}";
|
2018-09-25 15:24:09 +00:00
|
|
|
version = "0.3.1";
|
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}";
|
2018-09-25 15:24:09 +00:00
|
|
|
sha256 = "0g3dikwk6n48dmhx9qchmzyrhcr40242lhvlcyk1nqbpvs3b51fm";
|
2018-09-11 12:34:21 +00:00
|
|
|
};
|
|
|
|
|
2019-05-25 11:03:08 +00:00
|
|
|
cargoSha256 = "1i7l21j8x2sm7m1mcyvqnggg6csf893h0gfrgyd8xyfiphl30jvj";
|
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 20:05:50 +00:00
|
|
|
patches = [ ./disable-network-based-test.patch ];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|