argo: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 04:25:00 -05:00
parent 4ca044eafc
commit 64b130dd88
2 changed files with 7 additions and 3 deletions

View File

@ -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;

View File

@ -18385,7 +18385,9 @@ in
arelle = with python3Packages; toPythonApplication arelle;
argo = callPackage ../applications/networking/cluster/argo { };
argo = callPackage ../applications/networking/cluster/argo {
inherit (darwin.apple_sdk.frameworks) Security;
};
argocd = callPackage ../applications/networking/cluster/argocd { };