okteto: init at 2.3.1
This commit is contained in:
parent
d49fb30770
commit
bbf24b7305
49
pkgs/development/tools/okteto/default.nix
Normal file
49
pkgs/development/tools/okteto/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "okteto";
|
||||||
|
version = "2.3.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "okteto";
|
||||||
|
repo = "okteto";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-2L6Ky7Mbky6VYx4kdBuYTtaJ9AzNufuYLrgERxLYpg8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Disable some tests that need file system & network access.
|
||||||
|
find cmd -name "*_test.go" | xargs rm -f
|
||||||
|
rm -f pkg/analytics/track_test.go
|
||||||
|
'';
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-XT/ZLydN1oeuRupD3gjvY6+hOB/Lq5CQwhfr9/iT7JI=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X github.com/okteto/okteto/pkg/config.VersionString=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
tags = [ "osusergo" "netgo" "static_build" ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd okteto \
|
||||||
|
--bash <($out/bin/okteto completion bash) \
|
||||||
|
--fish <($out/bin/okteto completion fish) \
|
||||||
|
--zsh <($out/bin/okteto completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Develop your applications directly in your Kubernetes Cluster";
|
||||||
|
homepage = "https://okteto.com/";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ aaronjheng ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -28395,6 +28395,8 @@ with pkgs;
|
||||||
|
|
||||||
odin2 = callPackage ../applications/audio/odin2 { };
|
odin2 = callPackage ../applications/audio/odin2 { };
|
||||||
|
|
||||||
|
okteto = callPackage ../development/tools/okteto { };
|
||||||
|
|
||||||
onlyoffice-bin = callPackage ../applications/office/onlyoffice-bin { };
|
onlyoffice-bin = callPackage ../applications/office/onlyoffice-bin { };
|
||||||
|
|
||||||
open-policy-agent = callPackage ../development/tools/open-policy-agent { };
|
open-policy-agent = callPackage ../development/tools/open-policy-agent { };
|
||||||
|
|
Loading…
Reference in a new issue