kubeseal: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:36:00 -05:00
parent 8e2dd1164f
commit 3772f50fc6
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "kubeseal";
@ -13,9 +13,11 @@ buildGoModule rec {
modSha256 = "04dmjyz3vi2l0dfpyy42lkp2fv1vlfkvblrxh1dvb37phrkd5lbd";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
subPackages = [ "cmd/kubeseal" ];
meta = with lib; {
meta = with stdenv.lib; {
description = "A Kubernetes controller and tool for one-way encrypted Secrets";
homepage = "https://github.com/bitnami-labs/sealed-secrets";
license = licenses.asl20;

View File

@ -20302,7 +20302,9 @@ in
go = buildPackages.go_1_13;
};
kubeseal = callPackage ../applications/networking/cluster/kubeseal { };
kubeseal = callPackage ../applications/networking/cluster/kubeseal {
inherit (darwin.apple_sdk.frameworks) Security;
};
kubectl = callPackage ../applications/networking/cluster/kubectl { };