reviewdog: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 06:13:00 -05:00
parent d7d95111bd
commit 5ba0036271
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 = "reviewdog";
@ -13,11 +13,13 @@ buildGoModule rec {
modSha256 = "1jf08g0xr4wknh9x15igq73y02cy2faqjdjs2v842ii4p3n4p9dw";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
subPackages = [ "cmd/reviewdog" ];
buildFlagsArray = [ "-ldflags=-s -w -X github.com/reviewdog/reviewdog/commands.Version=${version}" ];
meta = with lib; {
meta = with stdenv.lib; {
description = "Automated code review tool integrated with any code analysis tools regardless of programming language";
homepage = "https://github.com/reviewdog/reviewdog";
changelog = "https://github.com/reviewdog/reviewdog/releases/tag/v${version}";

View File

@ -10795,7 +10795,9 @@ in
withPEPatterns = true;
};
reviewdog = callPackage ../development/tools/misc/reviewdog { };
reviewdog = callPackage ../development/tools/misc/reviewdog {
inherit (darwin.apple_sdk.frameworks) Security;
};
rman = callPackage ../development/tools/misc/rman { };