From 4a5a07a4870efd6611f66a97bb68ec8ede454e2d Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 21 Mar 2020 04:34:00 -0500 Subject: [PATCH] croc: fix build on darwin --- pkgs/tools/networking/croc/default.nix | 5 ++++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/croc/default.nix b/pkgs/tools/networking/croc/default.nix index 52f9ef9fade8..70ffe180f157 100644 --- a/pkgs/tools/networking/croc/default.nix +++ b/pkgs/tools/networking/croc/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildGoModule, fetchFromGitHub }: +{ stdenv, buildGoModule, fetchFromGitHub, Security }: buildGoModule rec { pname = "croc"; @@ -14,6 +14,9 @@ buildGoModule rec { }; modSha256 = "0d4mm840fjsbcyl98zg6d3i7qp1lmjkx07mh91d56jyf9j082g99"; + + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + subPackages = [ "." ]; meta = with stdenv.lib; { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 97ed4c25976e..baa8b77a2ff6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1434,7 +1434,9 @@ in cassowary = callPackage ../tools/networking/cassowary { }; - croc = callPackage ../tools/networking/croc { }; + croc = callPackage ../tools/networking/croc { + inherit (darwin.apple_sdk.frameworks) Security; + }; cddl = callPackage ../development/tools/cddl { };