nixpkgs/pkgs/tools/package-management/cargo-edit/default.nix
Uli Baum 0046d42397 cargo-edit: remove reference to <nixpkgs>
... it broke nixpkgs.tarball
2018-06-01 01:55:31 +02:00

27 lines
929 B
Nix

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