1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/tools/package-management/cargo-edit/default.nix
Daniël de Kok 85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00

41 lines
944 B
Nix

{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, libiconv
, Security
, zlib
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-edit";
version = "0.7.0";
src = fetchFromGitHub {
owner = "killercup";
repo = pname;
rev = "v${version}";
hash = "sha256:0fh1lq793k4ddpqsf2av447hcb74vcq53afkm3g4672k48mjjw1y";
};
cargoSha256 = "0ah3zjx36ibax4gi66g13finh4m2k0aidxkg2nxx1c2aqj847mm1";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl zlib ] ++ lib.optionals stdenv.isDarwin [
libiconv
Security
];
doCheck = false; # integration tests depend on changing cargo config
meta = with lib; {
description = "A utility for managing cargo dependencies from the command line";
homepage = "https://github.com/killercup/cargo-edit";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ gerschtli jb55 Br1ght0ne killercup ];
};
}