argo: fix build on darwin
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoModule, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoModule, buildGoPackage, fetchFromGitHub, Security }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# Argo can package a static server in the CLI using the `staticfiles` go module.
|
# Argo can package a static server in the CLI using the `staticfiles` go module.
|
||||||
@@ -32,6 +32,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
subPackages = [ "cmd/argo" ];
|
subPackages = [ "cmd/argo" ];
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
mkdir -p ui/dist/app
|
mkdir -p ui/dist/app
|
||||||
echo "Built without static files" > ui/dist/app/index.html
|
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
|
${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";
|
description = "Container native workflow engine for Kubernetes";
|
||||||
homepage = https://github.com/argoproj/argo;
|
homepage = https://github.com/argoproj/argo;
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
|||||||
@@ -18385,7 +18385,9 @@ in
|
|||||||
|
|
||||||
arelle = with python3Packages; toPythonApplication arelle;
|
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 { };
|
argocd = callPackage ../applications/networking/cluster/argocd { };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user