virtctl: init at 0.52.0 (#171734)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
82c09e5ea4
commit
1391482b41
2 changed files with 45 additions and 0 deletions
43
pkgs/tools/virtualization/kubevirt/default.nix
Normal file
43
pkgs/tools/virtualization/kubevirt/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ buildGoModule
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, testers
|
||||
, kubevirt
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "kubevirt";
|
||||
version = "0.52.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kubevirt";
|
||||
repo = "kubevirt";
|
||||
rev = "v${version}";
|
||||
sha256 = "0ldc13nypbk3r9ihbdfibpyvzyzz4m68zzb7g6cq551ks9qdiyma";
|
||||
};
|
||||
|
||||
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}"
|
||||
];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -1213,6 +1213,8 @@ with pkgs;
|
|||
|
||||
ventoy-bin = callPackage ../tools/cd-dvd/ventoy-bin { };
|
||||
|
||||
kubevirt = callPackage ../tools/virtualization/kubevirt { };
|
||||
|
||||
vopono = callPackage ../tools/networking/vopono { };
|
||||
|
||||
winbox = callPackage ../tools/admin/winbox {
|
||||
|
|
Loading…
Reference in a new issue