golangci-lint: fix build on darwin
This commit is contained in:
parent
f68366f274
commit
4c6e7e64a0
2 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue