From 55fa7fd5856ab36332b0cc2d46e367a73b447fe8 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 21 Mar 2020 05:39:00 -0500 Subject: [PATCH] linkerd: fix build on darwin --- pkgs/applications/networking/cluster/linkerd/default.nix | 4 +++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/linkerd/default.nix b/pkgs/applications/networking/cluster/linkerd/default.nix index 8c0265d1491..d52b25c2e01 100644 --- a/pkgs/applications/networking/cluster/linkerd/default.nix +++ b/pkgs/applications/networking/cluster/linkerd/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, buildGoModule }: +{ stdenv, fetchFromGitHub, buildGoModule, Security }: buildGoModule { pname = "linkerd-unstablle"; @@ -13,6 +13,8 @@ buildGoModule { modSha256 = "0gahhywpcj16ww4l8s3wjwvavq24fpy258snhyf94ipy6lb797sl"; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + subPackages = [ "cli/cmd" ]; meta = with stdenv.lib; { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bedd21d2dd4..719b7882539 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20322,7 +20322,9 @@ in inherit (darwin.apple_sdk.frameworks) Security; }; - linkerd = callPackage ../applications/networking/cluster/linkerd { }; + linkerd = callPackage ../applications/networking/cluster/linkerd { + inherit (darwin.apple_sdk.frameworks) Security; + }; kubernetes-helm = callPackage ../applications/networking/cluster/helm { inherit (darwin.apple_sdk.frameworks) Security;