diff options
author | haslersn <sebastian.hasler@sec.uni-stuttgart.de> | 2022-05-08 22:11:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 22:11:41 +0200 |
commit | 1391482b41a65d67fd2a5af3ac670264a0f6b2db (patch) | |
tree | 7e0bd4939214f2a1c84be5d5f582c724fc299ed1 /pkgs/tools | |
parent | 82c09e5ea419d22da1a151df84684d41a6c7f671 (diff) |
virtctl: init at 0.52.0 (#171734)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/virtualization/kubevirt/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/tools/virtualization/kubevirt/default.nix b/pkgs/tools/virtualization/kubevirt/default.nix new file mode 100644 index 0000000000000..999d5b3dfc1e5 --- /dev/null +++ b/pkgs/tools/virtualization/kubevirt/default.nix @@ -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 ]; + }; +} |