go-license-detector: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:05:00 -05:00
parent 4f8836ee99
commit 26f5b0ed8f
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "go-license-detector";
@ -13,7 +13,9 @@ buildGoModule rec {
modSha256 = "163f1kiy7kqrnaazb8ydaaiz57lv30jyjkvv6i7pczvcg9yfhmdb";
meta = with lib; {
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
description = "Reliable project licenses detector";
homepage = "https://github.com/src-d/go-license-detector";
license = licenses.asl20;

View File

@ -26348,7 +26348,9 @@ in
quartus-prime-lite = callPackage ../applications/editors/quartus-prime {};
go-license-detector = callPackage ../development/tools/misc/go-license-detector { };
go-license-detector = callPackage ../development/tools/misc/go-license-detector {
inherit (darwin.apple_sdk.frameworks) Security;
};
hashdeep = callPackage ../tools/security/hashdeep { };