summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/cluster/argo
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-21 04:25:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-03-21 04:25:00 -0500
commit64b130dd88c925fd54102c0df83de74a26bcdbe3 (patch)
treec2f25277659c54c9606d7dd427bbb436fe3f7a88 /pkgs/applications/networking/cluster/argo
parent4ca044eafc4a1ec888283ec55e6b6d167494506e (diff)
argo: fix build on darwin
Diffstat (limited to 'pkgs/applications/networking/cluster/argo')
-rw-r--r--pkgs/applications/networking/cluster/argo/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/networking/cluster/argo/default.nix b/pkgs/applications/networking/cluster/argo/default.nix
index f02b64e92c8b..25fb33399c0d 100644
--- a/pkgs/applications/networking/cluster/argo/default.nix
+++ b/pkgs/applications/networking/cluster/argo/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, buildGoPackage, fetchFromGitHub }:
+{ stdenv, buildGoModule, buildGoPackage, fetchFromGitHub, Security }:
let
# Argo can package a static server in the CLI using the `staticfiles` go module.
@@ -32,6 +32,8 @@ buildGoModule rec {
subPackages = [ "cmd/argo" ];
+ buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
+
preBuild = ''
mkdir -p ui/dist/app
echo "Built without static files" > ui/dist/app/index.html
@@ -39,7 +41,7 @@ buildGoModule rec {
${staticfiles}/bin/staticfiles -o server/static/files.go ui/dist/app
'';
- meta = with lib; {
+ meta = with stdenv.lib; {
description = "Container native workflow engine for Kubernetes";
homepage = https://github.com/argoproj/argo;
license = licenses.asl20;