aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/networking/cluster/argo/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/cluster/argo/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/networking/cluster/argo/default.nix30
1 files changed, 25 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/applications/networking/cluster/argo/default.nix b/nixpkgs/pkgs/applications/networking/cluster/argo/default.nix
index 7179a291543..72c3955f90f 100644
--- a/nixpkgs/pkgs/applications/networking/cluster/argo/default.nix
+++ b/nixpkgs/pkgs/applications/networking/cluster/argo/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, buildGoPackage, fetchFromGitHub }:
+{ lib, buildGoModule, buildGoPackage, fetchFromGitHub, installShellFiles }:
let
# Argo can package a static server in the CLI using the `staticfiles` go module.
@@ -19,19 +19,23 @@ let
in
buildGoModule rec {
pname = "argo";
- version = "2.6.1";
+ version = "2.10.1";
src = fetchFromGitHub {
owner = "argoproj";
repo = "argo";
rev = "v${version}";
- sha256 = "12wq79h4m8wlzf18r66965mbbjjb62kvnxdj50ra7nxa8jjxpsmf";
+ sha256 = "1k023rq4p0hvq5famxm83csp3zsijrki8myk6v83xyfigwxc8sia";
};
- vendorSha256 = "0dhzr62x2lzf3w0j2r496cr7jvkdcavfqaqr2xh972k3qqc9caky";
+ vendorSha256 = "0fqdxs3r4249qxlc9cac0lpbqf2aifkcah07v0cckb9rxfyiwhjz";
+
+ doCheck = false;
subPackages = [ "cmd/argo" ];
+ nativeBuildInputs = [ installShellFiles ];
+
preBuild = ''
mkdir -p ui/dist/app
echo "Built without static files" > ui/dist/app/index.html
@@ -39,6 +43,22 @@ buildGoModule rec {
${staticfiles}/bin/staticfiles -o server/static/files.go ui/dist/app
'';
+ buildFlagsArray = ''
+ -ldflags=
+ -s -w
+ -X github.com/argoproj/argo.version=${version}
+ -X github.com/argoproj/argo.gitCommit=${src.rev}
+ -X github.com/argoproj/argo.gitTreeState=clean
+ -X github.com/argoproj/argo.gitTag=${version}
+ '';
+
+ postInstall = ''
+ for shell in bash zsh; do
+ $out/bin/argo completion $shell > argo.$shell
+ installShellCompletion argo.$shell
+ done
+ '';
+
meta = with lib; {
description = "Container native workflow engine for Kubernetes";
homepage = "https://github.com/argoproj/argo";
@@ -46,4 +66,4 @@ buildGoModule rec {
maintainers = with maintainers; [ groodt ];
platforms = platforms.unix;
};
-} \ No newline at end of file
+}