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

32 lines
983 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}";
2018-09-25 15:24:09 +00:00
version = "0.3.1";
2017-04-15 16:10:05 +00:00
src = fetchFromGitHub {
owner = "killercup";
repo = "cargo-edit";
rev = "v${version}";
2018-09-25 15:24:09 +00:00
sha256 = "0g3dikwk6n48dmhx9qchmzyrhcr40242lhvlcyk1nqbpvs3b51fm";
};
2018-09-25 15:24:09 +00:00
cargoSha256 = "1bq0mjn44f0sn94nb9wqal4swhkzn7f3vbk5jyay4v3wqfz1gb7r";
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
2018-09-11 20:05:50 +00:00
patches = [ ./disable-network-based-test.patch ];
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
};
}