cargo-edit: use buildRustPackage instead of Carnix

Saving 3000 lines of Nix code.
This commit is contained in:
Alyssa Ross 2018-09-11 13:34:21 +01:00
parent 7cafc36d28
commit 902dea15ec
No known key found for this signature in database
GPG Key ID: C4844408C0657052
2 changed files with 19 additions and 3170 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,28 +1,25 @@
{ stdenv, lib, buildPlatform, fetchgit, fetchFromGitHub, darwin { stdenv, lib, darwin, rustPlatform, fetchFromGitHub }:
, buildRustCrate, defaultCrateOverrides }:
((import ./Cargo.nix { inherit lib buildPlatform buildRustCrate fetchgit; }).cargo_edit {}).override { rustPlatform.buildRustPackage rec {
crateOverrides = defaultCrateOverrides // { name = "cargo-edit-${version}";
cargo-edit = attrs: rec { version = "0.3.0";
name = "cargo-edit-${version}";
version = "0.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "killercup"; owner = "killercup";
repo = "cargo-edit"; repo = "cargo-edit";
rev = "v${version}"; rev = "v${version}";
sha256 = "0ngxyzqy5pfc0fqbvqw7kd40jhqzp67qvpzvh3yggk9yxa1jzsp0"; sha256 = "0ngxyzqy5pfc0fqbvqw7kd40jhqzp67qvpzvh3yggk9yxa1jzsp0";
}; };
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; cargoSha256 = "1j7fqswdx6f2i5wr0pdavdvcv18j1l27a8ighr75p7f54apa27l8";
meta = with stdenv.lib; { propagatedBuildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
description = "A utility for managing cargo dependencies from the command line";
homepage = https://github.com/killercup/cargo-edit; meta = with lib; {
license = with licenses; [ mit ]; description = "A utility for managing cargo dependencies from the command line";
maintainers = with maintainers; [ gerschtli jb55 ]; homepage = https://github.com/killercup/cargo-edit;
platforms = platforms.all; license = with licenses; [ mit ];
}; maintainers = with maintainers; [ gerschtli jb55 ];
}; platforms = platforms.all;
}; };
} }