1 { lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, okteto }:
7 src = fetchFromGitHub {
11 hash = "sha256-F3tvk3vC6h8fJ2hZMKo2eQ0uUj0UsK7MEujo//wXJi0=";
14 vendorHash = "sha256-+Adnveutg8soqK2Zwn2SNq7SEHd/Z91diHbPYHrGVrA=";
17 # Disable some tests that need file system & network access.
18 find cmd -name "*_test.go" | xargs rm -f
19 rm -f pkg/analytics/track_test.go
22 nativeBuildInputs = [ installShellFiles ];
27 "-X github.com/okteto/okteto/pkg/config.VersionString=${version}"
30 tags = [ "osusergo" "netgo" "static_build" ];
33 export HOME=$(mktemp -d)
37 installShellCompletion --cmd okteto \
38 --bash <($out/bin/okteto completion bash) \
39 --fish <($out/bin/okteto completion fish) \
40 --zsh <($out/bin/okteto completion zsh)
43 passthru.tests.version = testers.testVersion {
45 command = "HOME=$(mktemp -d) okteto version";
49 description = "Develop your applications directly in your Kubernetes Cluster";
50 mainProgram = "okteto";
51 homepage = "https://okteto.com/";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ aaronjheng ];