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

28 lines
929 B
Nix
Raw Normal View History

{ stdenv, pkgs, darwin, defaultCrateOverrides, fetchFromGitHub }:
2017-04-15 18:10:05 +02:00
((import ./cargo-edit.nix { inherit pkgs; }).cargo_edit {}).override {
crateOverrides = defaultCrateOverrides // {
cargo-edit = attrs: rec {
name = "cargo-edit-${version}";
version = "0.2.0";
2017-04-15 18:10:05 +02:00
src = fetchFromGitHub {
owner = "killercup";
repo = "cargo-edit";
rev = "v${version}";
sha256 = "1jxppbb7s50pwg24qxf79fqvm1clwm2zdnv0xlkay7y05nd5bc0c";
};
2017-04-15 18:10:05 +02:00
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
2017-04-15 18:10:05 +02:00
meta = with stdenv.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 18:10:05 +02:00
};
}