From 976a9ea16b883424cb31cc5b4d612def1da22cbd Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 21 Mar 2020 04:23:00 -0500 Subject: [PATCH] go-tools: fix build on darwin --- pkgs/development/tools/go-tools/default.nix | 7 +++++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/go-tools/default.nix b/pkgs/development/tools/go-tools/default.nix index 1fd17060bd4..b047689b81f 100644 --- a/pkgs/development/tools/go-tools/default.nix +++ b/pkgs/development/tools/go-tools/default.nix @@ -1,6 +1,7 @@ { buildGoModule -, lib +, stdenv , fetchFromGitHub +, Security }: buildGoModule rec { @@ -16,9 +17,11 @@ buildGoModule rec { sha256 = "0pvi1mzhy6zgx4zfgdypbl4zhvgg11hl5qv7blf2qs0a96j2djhf"; }; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + modSha256 = "03560xjr2531xj87paskfx2zs364fz6y4kpsid8x08s1syq9nq7p"; - meta = with lib; { + meta = with stdenv.lib; { description = "A collection of tools and libraries for working with Go code, including linters and static analysis"; homepage = https://staticcheck.io; license = licenses.mit; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6714819683c..fb882847250 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17136,7 +17136,9 @@ in govendor = callPackage ../development/tools/govendor { }; - go-tools = callPackage ../development/tools/go-tools { }; + go-tools = callPackage ../development/tools/go-tools { + inherit (darwin.apple_sdk.frameworks) Security; + }; gotools = callPackage ../development/tools/gotools { };