uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
38
pkgs/applications/networking/cluster/kubernetes/kubectl.nix
Normal file
38
pkgs/applications/networking/cluster/kubernetes/kubectl.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, kubernetes }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "kubectl";
|
||||
|
||||
inherit (kubernetes)
|
||||
disallowedReferences
|
||||
GOFLAGS
|
||||
nativeBuildInputs
|
||||
postBuild
|
||||
postPatch
|
||||
src
|
||||
version
|
||||
;
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
WHAT = "cmd/kubectl";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -D _output/local/go/bin/kubectl -t $out/bin
|
||||
|
||||
installManPage docs/man/man1/kubectl*
|
||||
|
||||
installShellCompletion --cmd kubectl \
|
||||
--bash <($out/bin/kubectl completion bash) \
|
||||
--fish <($out/bin/kubectl completion fish) \
|
||||
--zsh <($out/bin/kubectl completion zsh)
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = kubernetes.meta // {
|
||||
description = "Kubernetes CLI";
|
||||
homepage = "https://github.com/kubernetes/kubectl";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue