nixpkgs/pkgs/tools/package-management/cargo-edit/default.nix

30 lines
930 B
Nix
Raw Normal View History

{ stdenv, lib, darwin
, rustPlatform, fetchFromGitHub
, openssl, pkgconfig }:
2017-04-15 16:10:05 +00:00
rustPlatform.buildRustPackage rec {
name = "cargo-edit-${version}";
version = "0.3.0";
2017-04-15 16:10:05 +00:00
src = fetchFromGitHub {
owner = "killercup";
repo = "cargo-edit";
rev = "v${version}";
sha256 = "0ngxyzqy5pfc0fqbvqw7kd40jhqzp67qvpzvh3yggk9yxa1jzsp0";
};
cargoSha256 = "1j7fqswdx6f2i5wr0pdavdvcv18j1l27a8ighr75p7f54apa27l8";
2017-04-15 16:10:05 +00: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 16:10:05 +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
};
}