mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 09:02:46 +00:00
2926041c6a
Infra upgrade as part of #79975; no functional change expected.
29 lines
869 B
Nix
29 lines
869 B
Nix
{ stdenv, lib, darwin
|
|
, rustPlatform, fetchFromGitHub
|
|
, openssl, pkg-config, libiconv }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-edit";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "killercup";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "16gpljbzk6cibry9ssnl22xbcsx2cr57mrs3x3n6cfmldbp6bhbr";
|
|
};
|
|
|
|
cargoSha256 = "1zwkar914zyghky09lgk0s374m5d6yccn0m15bqlgxxyymg4b59y";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
|
|
|
|
meta = with 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 filalex77 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|