diff options
author | William Casarin <jb55@jb55.com> | 2017-04-15 09:10:05 -0700 |
---|---|---|
committer | William Casarin <jb55@jb55.com> | 2017-04-15 09:17:21 -0700 |
commit | 209e8e53fb2278c1d09c4759868ad82a8e21e851 (patch) | |
tree | de715d29ab3c565f11bbebf0f1183f37d2964ff2 | |
parent | 7df8e53d288915d2623479e117ce3c855bc3df7c (diff) | |
download | nixlib-209e8e53fb2278c1d09c4759868ad82a8e21e851.tar nixlib-209e8e53fb2278c1d09c4759868ad82a8e21e851.tar.gz nixlib-209e8e53fb2278c1d09c4759868ad82a8e21e851.tar.bz2 nixlib-209e8e53fb2278c1d09c4759868ad82a8e21e851.tar.lz nixlib-209e8e53fb2278c1d09c4759868ad82a8e21e851.tar.xz nixlib-209e8e53fb2278c1d09c4759868ad82a8e21e851.tar.zst nixlib-209e8e53fb2278c1d09c4759868ad82a8e21e851.zip |
cargo-edit: init at 0.1.6
-rw-r--r-- | pkgs/tools/package-management/cargo-edit/default.nix | 27 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/package-management/cargo-edit/default.nix b/pkgs/tools/package-management/cargo-edit/default.nix new file mode 100644 index 000000000000..4a34e62322d2 --- /dev/null +++ b/pkgs/tools/package-management/cargo-edit/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper, zlib, openssl }: + +with rustPlatform; + +buildRustPackage rec { + name = "cargo-edit-${version}"; + version = "0.1.6"; + + src = fetchFromGitHub { + owner = "killercup"; + repo = "cargo-edit"; + rev = "v${version}"; + sha256 = "16wvix2zkpzl1hhlsvd6mkps8fw5k4n2dvjk9m10gg27pixmiync"; + }; + + buildInputs = [ zlib openssl ]; + + depsSha256 = "1v7ir56j6biximnnhyvadd98azcj3i5hc8aky0am2nf0swq0jimq"; + + 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; [ jb55 ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b4345da94667..fe519d3c09b5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5582,6 +5582,8 @@ with pkgs; cargo = rust.cargo; rustc = rust.rustc; + cargo-edit = callPackage ../tools/package-management/cargo-edit { }; + rustPlatform = recurseIntoAttrs (makeRustPlatform rust); makeRustPlatform = rust: lib.fix (self: |