3
0
Fork 0
forked from mirrors/nixpkgs

golangci-lint: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:14:00 -05:00
parent f68366f274
commit 4c6e7e64a0
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 = "golangci-lint";
@ -14,7 +14,9 @@ buildGoModule rec {
modSha256 = "0ab1s8pqkpss15rd9brin39lzx2fqkvq2v3nhk8kfrgpari2addk";
subPackages = [ "cmd/golangci-lint" ];
meta = with lib; {
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
description = "Linters Runner for Go. 5x faster than gometalinter. Nice colored output.";
homepage = "https://golangci.com/";
license = licenses.agpl3;

View file

@ -17195,7 +17195,9 @@ in
golint = callPackage ../development/tools/golint { };
golangci-lint = callPackage ../development/tools/golangci-lint { };
golangci-lint = callPackage ../development/tools/golangci-lint {
inherit (darwin.apple_sdk.frameworks) Security;
};
gocyclo = callPackage ../development/tools/gocyclo { };