mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
30 lines
830 B
Nix
30 lines
830 B
Nix
{ darwin, fetchFromGitHub, rustPlatform, stdenv }:
|
|
|
|
with rustPlatform;
|
|
|
|
buildRustPackage rec {
|
|
name = "click-${version}";
|
|
version = "0.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "databricks";
|
|
repo = "click";
|
|
sha256 = "0sbj41kypn637z1w115w2h5v6bxz3y6w5ikgpx3ihsh89lkc19d2";
|
|
};
|
|
|
|
cargoSha256 = "1179a17lfr3001vp1a2adbkhdm9677n56af2c0zvkr18jas6b2w7";
|
|
|
|
patches = [ ./fix_cargo_lock_version.patch ];
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = ''The "Command Line Interactive Controller for Kubernetes"'';
|
|
homepage = https://github.com/databricks/click;
|
|
license = [ licenses.asl20 ];
|
|
maintainers = [ maintainers.mbode ];
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
|
};
|
|
}
|