File tree Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change 11{
2+ lib ,
23 buildGoModule ,
34 fetchFromGitHub ,
45 go ,
5- installShellFiles ,
6- lib ,
76 nix-update-script ,
87 testers ,
98 vcluster ,
109} :
1110
1211buildGoModule rec {
1312 pname = "vcluster" ;
14- version = "0.19.7 " ;
13+ version = "0.23.0 " ;
1514
1615 src = fetchFromGitHub {
1716 owner = "loft-sh" ;
1817 repo = "vcluster" ;
19- rev = "v${ version } " ;
20- hash = "sha256-sO/kpbzoAy4ohmLZ3Q7+HzoC0NoK2y0qkJ6Ib8TlEns =" ;
18+ tag = "v${ version } " ;
19+ hash = "sha256-zW3iqVuyuoHxOzCr5dMMO5ULqD/w5huCxmOunO5rmFw =" ;
2120 } ;
2221
2322 vendorHash = null ;
@@ -31,28 +30,20 @@ buildGoModule rec {
3130 "-X main.goVersion=${ lib . getVersion go } "
3231 ] ;
3332
34- nativeBuildInputs = [ installShellFiles ] ;
35-
3633 # Test is disabled because e2e tests expect k8s.
3734 doCheck = false ;
3835
3936 installPhase = ''
4037 runHook preInstall
41- mkdir -p $out/bin
42- install -Dm755 "$GOPATH/bin/vclusterctl" -T $out/bin/vcluster
43- runHook postInstall
44- '' ;
4538
46- postInstall = ''
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)
39+ install -Dm755 $GOPATH/bin/vclusterctl $out/bin/vcluster
40+
41+ runHook postInstall
5142 '' ;
5243
5344 passthru . tests . version = testers . testVersion {
5445 package = vcluster ;
55- command = "vcluster --version" ;
46+ command = "HOME=$(mktemp -d) vcluster --version" ;
5647 } ;
5748
5849 passthru . updateScript = nix-update-script { } ;
You can’t perform that action at this time.
0 commit comments