Loading pkgs/by-name/vc/vcluster/package.nix +8 −17 Original line number Diff line number Diff line { lib, buildGoModule, fetchFromGitHub, go, installShellFiles, lib, nix-update-script, testers, vcluster, Loading @@ -11,13 +10,13 @@ buildGoModule rec { pname = "vcluster"; version = "0.19.7"; version = "0.23.0"; src = fetchFromGitHub { owner = "loft-sh"; repo = "vcluster"; rev = "v${version}"; hash = "sha256-sO/kpbzoAy4ohmLZ3Q7+HzoC0NoK2y0qkJ6Ib8TlEns="; tag = "v${version}"; hash = "sha256-zW3iqVuyuoHxOzCr5dMMO5ULqD/w5huCxmOunO5rmFw="; }; vendorHash = null; Loading @@ -31,28 +30,20 @@ buildGoModule rec { "-X main.goVersion=${lib.getVersion go}" ]; nativeBuildInputs = [ installShellFiles ]; # Test is disabled because e2e tests expect k8s. doCheck = false; installPhase = '' runHook preInstall mkdir -p $out/bin install -Dm755 "$GOPATH/bin/vclusterctl" -T $out/bin/vcluster runHook postInstall ''; postInstall = '' installShellCompletion --cmd vcluster \ --bash <($out/bin/vcluster completion bash) \ --fish <($out/bin/vcluster completion fish) \ --zsh <($out/bin/vcluster completion zsh) install -Dm755 $GOPATH/bin/vclusterctl $out/bin/vcluster runHook postInstall ''; passthru.tests.version = testers.testVersion { package = vcluster; command = "vcluster --version"; command = "HOME=$(mktemp -d) vcluster --version"; }; passthru.updateScript = nix-update-script { }; Loading Loading
pkgs/by-name/vc/vcluster/package.nix +8 −17 Original line number Diff line number Diff line { lib, buildGoModule, fetchFromGitHub, go, installShellFiles, lib, nix-update-script, testers, vcluster, Loading @@ -11,13 +10,13 @@ buildGoModule rec { pname = "vcluster"; version = "0.19.7"; version = "0.23.0"; src = fetchFromGitHub { owner = "loft-sh"; repo = "vcluster"; rev = "v${version}"; hash = "sha256-sO/kpbzoAy4ohmLZ3Q7+HzoC0NoK2y0qkJ6Ib8TlEns="; tag = "v${version}"; hash = "sha256-zW3iqVuyuoHxOzCr5dMMO5ULqD/w5huCxmOunO5rmFw="; }; vendorHash = null; Loading @@ -31,28 +30,20 @@ buildGoModule rec { "-X main.goVersion=${lib.getVersion go}" ]; nativeBuildInputs = [ installShellFiles ]; # Test is disabled because e2e tests expect k8s. doCheck = false; installPhase = '' runHook preInstall mkdir -p $out/bin install -Dm755 "$GOPATH/bin/vclusterctl" -T $out/bin/vcluster runHook postInstall ''; postInstall = '' installShellCompletion --cmd vcluster \ --bash <($out/bin/vcluster completion bash) \ --fish <($out/bin/vcluster completion fish) \ --zsh <($out/bin/vcluster completion zsh) install -Dm755 $GOPATH/bin/vclusterctl $out/bin/vcluster runHook postInstall ''; passthru.tests.version = testers.testVersion { package = vcluster; command = "vcluster --version"; command = "HOME=$(mktemp -d) vcluster --version"; }; passthru.updateScript = nix-update-script { }; Loading