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
53
pkgs/tools/virtualization/kubevirt/default.nix
Normal file
53
pkgs/tools/virtualization/kubevirt/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, lib
|
||||
, testers
|
||||
, kubevirt
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "kubevirt";
|
||||
version = "0.53.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kubevirt";
|
||||
repo = "kubevirt";
|
||||
rev = "v${version}";
|
||||
sha256 = "11581mp4fjqmpy3zn9mjq651ijsxmffz9vpvbn4b5gcs9xzgr1fw";
|
||||
};
|
||||
|
||||
vendorSha256 = null;
|
||||
|
||||
subPackages = [ "cmd/virtctl" ];
|
||||
|
||||
tags = [ "selinux" ];
|
||||
|
||||
ldflags = [
|
||||
"-X kubevirt.io/client-go/version.gitCommit=v${version}"
|
||||
"-X kubevirt.io/client-go/version.gitTreeState=clean"
|
||||
"-X kubevirt.io/client-go/version.gitVersion=v${version}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd virtctl \
|
||||
--bash <($out/bin/virtctl completion bash) \
|
||||
--fish <($out/bin/virtctl completion fish) \
|
||||
--zsh <($out/bin/virtctl completion zsh)
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = kubevirt;
|
||||
command = "virtctl version --client";
|
||||
version = "v${version}";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Client tool to use advanced features such as console access";
|
||||
homepage = "https://kubevirt.io/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ haslersn ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue