diff --git a/pkgs/tools/virtualization/kubevirt/default.nix b/pkgs/tools/virtualization/kubevirt/default.nix index 999d5b3dfc1e..7378a6b6655a 100644 --- a/pkgs/tools/virtualization/kubevirt/default.nix +++ b/pkgs/tools/virtualization/kubevirt/default.nix @@ -1,5 +1,6 @@ { buildGoModule , fetchFromGitHub +, installShellFiles , lib , testers , kubevirt @@ -7,13 +8,13 @@ buildGoModule rec { pname = "kubevirt"; - version = "0.52.0"; + version = "0.53.0"; src = fetchFromGitHub { owner = "kubevirt"; repo = "kubevirt"; rev = "v${version}"; - sha256 = "0ldc13nypbk3r9ihbdfibpyvzyzz4m68zzb7g6cq551ks9qdiyma"; + sha256 = "11581mp4fjqmpy3zn9mjq651ijsxmffz9vpvbn4b5gcs9xzgr1fw"; }; vendorSha256 = null; @@ -28,6 +29,15 @@ buildGoModule rec { "-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"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 68ec25774319..72642cd6e22b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1153,6 +1153,8 @@ with pkgs; ksnip = libsForQt5.callPackage ../tools/misc/ksnip { }; + kubevirt = callPackage ../tools/virtualization/kubevirt { }; + license-generator = callPackage ../tools/misc/license-generator { }; linux-router = callPackage ../tools/networking/linux-router { }; @@ -1197,8 +1199,6 @@ 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 {