mtail: fix build on darwin

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

View File

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, buildGoModule }:
{ stdenv, fetchFromGitHub, buildGoModule, Security }:
buildGoModule rec {
pname = "mtail";
@ -14,6 +14,8 @@ buildGoModule rec {
modSha256 = "0h3q1qd9a01wlfkk0yv74a4bk5nilpsppq522cv7kl8ysnrjh5yi";
subPackages = [ "cmd/mtail" ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
preBuild = ''
go generate -x ./internal/vm/
'';
@ -22,7 +24,7 @@ buildGoModule rec {
"-ldflags=-X main.Version=${version}"
];
meta = with lib; {
meta = with stdenv.lib; {
license = licenses.asl20;
homepage = "https://github.com/google/mtail";
description = "Tool for extracting metrics from application logs";

View File

@ -4732,7 +4732,9 @@ in
motion = callPackage ../applications/video/motion { };
mtail = callPackage ../servers/monitoring/mtail { };
mtail = callPackage ../servers/monitoring/mtail {
inherit (darwin.apple_sdk.frameworks) Security;
};
multitail = callPackage ../tools/misc/multitail { };