16 src = fetchFromGitHub {
20 hash = "sha256-sO/kpbzoAy4ohmLZ3Q7+HzoC0NoK2y0qkJ6Ib8TlEns=";
25 subPackages = [ "cmd/vclusterctl" ];
30 "-X main.version=${version}"
31 "-X main.goVersion=${lib.getVersion go}"
34 nativeBuildInputs = [ installShellFiles ];
36 # Test is disabled because e2e tests expect k8s.
42 install -Dm755 "$GOPATH/bin/vclusterctl" -T $out/bin/vcluster
47 installShellCompletion --cmd vcluster \
48 --bash <($out/bin/vcluster completion bash) \
49 --fish <($out/bin/vcluster completion fish) \
50 --zsh <($out/bin/vcluster completion zsh)
53 passthru.tests.version = testers.testVersion {
55 command = "vcluster --version";
58 passthru.updateScript = nix-update-script { };
61 changelog = "https://github.com/loft-sh/vcluster/releases/tag/v${version}";
62 description = "Create fully functional virtual Kubernetes clusters";
63 downloadPage = "https://github.com/loft-sh/vcluster";
64 homepage = "https://www.vcluster.com/";
65 license = lib.licenses.asl20;
66 mainProgram = "vcluster";
67 maintainers = with lib.maintainers; [