2018-09-11 20:54:17 +01:00
|
|
|
{ stdenv, lib, darwin
|
|
|
|
, rustPlatform, fetchFromGitHub
|
|
|
|
, openssl, pkgconfig }:
|
2017-04-15 17:10:05 +01:00
|
|
|
|
2018-09-11 13:34:21 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "cargo-edit-${version}";
|
2018-09-25 16:24:09 +01:00
|
|
|
version = "0.3.1";
|
2017-04-15 17:10:05 +01:00
|
|
|
|
2018-09-11 13:34:21 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "killercup";
|
|
|
|
repo = "cargo-edit";
|
|
|
|
rev = "v${version}";
|
2018-09-25 16:24:09 +01:00
|
|
|
sha256 = "0g3dikwk6n48dmhx9qchmzyrhcr40242lhvlcyk1nqbpvs3b51fm";
|
2018-09-11 13:34:21 +01:00
|
|
|
};
|
|
|
|
|
2018-09-25 16:24:09 +01:00
|
|
|
cargoSha256 = "1bq0mjn44f0sn94nb9wqal4swhkzn7f3vbk5jyay4v3wqfz1gb7r";
|
2017-04-15 17:10:05 +01:00
|
|
|
|
2018-09-11 20:54:17 +01:00
|
|
|
nativeBuildInputs = lib.optional (!stdenv.isDarwin) pkgconfig;
|
|
|
|
buildInputs = lib.optional (!stdenv.isDarwin) openssl;
|
2018-09-11 13:34:21 +01:00
|
|
|
propagatedBuildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
2017-04-15 17:10:05 +01:00
|
|
|
|
2018-09-11 21:05:50 +01:00
|
|
|
patches = [ ./disable-network-based-test.patch ];
|
|
|
|
|
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 ];
|
|
|
|
maintainers = with maintainers; [ gerschtli jb55 ];
|
|
|
|
platforms = platforms.all;
|
2017-04-15 17:10:05 +01:00
|
|
|
};
|
|
|
|
}
|