gotools: fix darwin build

This commit is contained in:
Daiderd Jordan 2020-03-21 14:44:57 +01:00
parent e7d2655efb
commit cb75c0f905
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, go, buildGoModule, fetchgit }:
{ stdenv, go, buildGoModule, fetchgit, Security }:
buildGoModule rec {
pname = "gotools-unstable";
@ -11,6 +11,8 @@ buildGoModule rec {
sha256 = "16m62m303j4wqfjr1401xpqpb9m11bs6qc2dhf6x2za2d9pycish";
};
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
# Build of golang.org/x/tools/gopls fails with:
# can't load package: package golang.org/x/tools/gopls: unknown import path "golang.org/x/tools/gopls": cannot find module providing package golang.org/x/tools/gopls
# That is most probably caused by golang.org/x/tools/gopls containing a separate Go module.

View file

@ -17132,7 +17132,9 @@ in
go-tools = callPackage ../development/tools/go-tools { };
gotools = callPackage ../development/tools/gotools { };
gotools = callPackage ../development/tools/gotools {
inherit (darwin.apple_sdk.frameworks) Security;
};
gotop = callPackage ../tools/system/gotop { };