3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/package-management/cargo-edit/default.nix

30 lines
913 B
Nix
Raw Normal View History

{ stdenv, lib, darwin
, rustPlatform, fetchFromGitHub
, openssl, pkgconfig }:
2017-04-15 17:10:05 +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
src = fetchFromGitHub {
owner = "killercup";
2019-06-04 17:36:54 +01:00
repo = pname;
rev = "v${version}";
2019-06-22 13:35:32 +01:00
sha256 = "05b64bm9441crw74xlywjg2y3psljk2kf9xsrixaqwbnnahi0mm5";
};
2019-06-22 13:35:32 +01:00
cargoSha256 = "1hjjw3i35vqr6nxsv2m3izq4x8c2a6wvl5c2kjlpg6shy9j2mjaa";
2017-04-15 17:10:05 +01:00
nativeBuildInputs = lib.optional (!stdenv.isDarwin) pkgconfig;
buildInputs = lib.optional (!stdenv.isDarwin) openssl;
propagatedBuildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
2017-04-15 17:10:05 +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
};
}