golangci-lint: fix build on darwin
This commit is contained in:
parent
f68366f274
commit
4c6e7e64a0
|
@ -1,4 +1,4 @@
|
||||||
{ buildGoModule, fetchFromGitHub, lib }:
|
{ buildGoModule, fetchFromGitHub, stdenv, Security }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "golangci-lint";
|
pname = "golangci-lint";
|
||||||
|
@ -14,7 +14,9 @@ buildGoModule rec {
|
||||||
modSha256 = "0ab1s8pqkpss15rd9brin39lzx2fqkvq2v3nhk8kfrgpari2addk";
|
modSha256 = "0ab1s8pqkpss15rd9brin39lzx2fqkvq2v3nhk8kfrgpari2addk";
|
||||||
subPackages = [ "cmd/golangci-lint" ];
|
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.";
|
description = "Linters Runner for Go. 5x faster than gometalinter. Nice colored output.";
|
||||||
homepage = "https://golangci.com/";
|
homepage = "https://golangci.com/";
|
||||||
license = licenses.agpl3;
|
license = licenses.agpl3;
|
||||||
|
|
|
@ -17195,7 +17195,9 @@ in
|
||||||
|
|
||||||
golint = callPackage ../development/tools/golint { };
|
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 { };
|
gocyclo = callPackage ../development/tools/gocyclo { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue