13 src = fetchFromGitHub {
17 hash = "sha256-t6lIHuMvo8iqYkZ1mYVU6fgOP3Q6sqWaTcFLTqAIm5c=";
22 subPackages = [ "cmd/virtctl" ];
27 "-X kubevirt.io/client-go/version.gitCommit=v${version}"
28 "-X kubevirt.io/client-go/version.gitTreeState=clean"
29 "-X kubevirt.io/client-go/version.gitVersion=v${version}"
32 nativeBuildInputs = [ installShellFiles ];
35 installShellCompletion --cmd virtctl \
36 --bash <($out/bin/virtctl completion bash) \
37 --fish <($out/bin/virtctl completion fish) \
38 --zsh <($out/bin/virtctl completion zsh)
41 passthru.tests.version = testers.testVersion {
43 command = "virtctl version --client";
44 version = "v${version}";
48 description = "Client tool to use advanced features such as console access";
49 homepage = "https://kubevirt.io/";
50 license = licenses.asl20;
51 maintainers = with maintainers; [ haslersn ];
52 mainProgram = "virtctl";