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 {
|
2019-06-04 17:36:54 +01:00
|
|
|
pname = "cargo-edit";
|
2019-06-22 13:35:32 +01:00
|
|
|
version = "0.3.3";
|
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}";
|
2019-06-22 13:35:32 +01:00
|
|
|
sha256 = "05b64bm9441crw74xlywjg2y3psljk2kf9xsrixaqwbnnahi0mm5";
|
2018-09-11 13:34:21 +01:00
|
|
|
};
|
|
|
|
|
2019-06-22 13:35:32 +01:00
|
|
|
cargoSha256 = "1hjjw3i35vqr6nxsv2m3izq4x8c2a6wvl5c2kjlpg6shy9j2mjaa";
|
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 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
|
|
|
};
|
|
|
|
}
|