proto-contrib: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:50:00 -05:00
parent b6b516f7cf
commit dba5b006e2
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ buildGoModule, fetchFromGitHub, stdenv, Security }:
buildGoModule rec {
pname = "proto-contrib";
@ -13,7 +13,9 @@ buildGoModule rec {
modSha256 = "19cqz13jd95d5vibd10420gg69ldgf6afc51mkglhafgmmif56b0";
meta = with lib; {
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
description = "Contributed tools and other packages on top of the Go proto package";
homepage = https://github.com/emicklei/proto-contrib;
license = licenses.mit;

View File

@ -177,7 +177,9 @@ in
hobbes = callPackage ../development/tools/hobbes { stdenv = gcc6Stdenv; }; # GCC 6 is latest currently supported. See https://git.io/JvK6M.
proto-contrib = callPackage ../development/tools/proto-contrib {};
proto-contrib = callPackage ../development/tools/proto-contrib {
inherit (darwin.apple_sdk.frameworks) Security;
};
protoc-gen-doc = callPackage ../development/tools/protoc-gen-doc {};