summary refs log tree commit diff
path: root/pkgs/development/tools/misc
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-21 05:05:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-03-21 05:05:00 -0500
commit26f5b0ed8f44203622b25b4a6150150d1c595e89 (patch)
tree0266e405cdc65c7db22603d2d9c24b56d7e14446 /pkgs/development/tools/misc
parent4f8836ee9971cf83e847bd1690851607586dfc15 (diff)
downloadnixpkgs-26f5b0ed8f44203622b25b4a6150150d1c595e89.tar
nixpkgs-26f5b0ed8f44203622b25b4a6150150d1c595e89.tar.gz
nixpkgs-26f5b0ed8f44203622b25b4a6150150d1c595e89.tar.bz2
nixpkgs-26f5b0ed8f44203622b25b4a6150150d1c595e89.tar.lz
nixpkgs-26f5b0ed8f44203622b25b4a6150150d1c595e89.tar.xz
nixpkgs-26f5b0ed8f44203622b25b4a6150150d1c595e89.tar.zst
nixpkgs-26f5b0ed8f44203622b25b4a6150150d1c595e89.zip
go-license-detector: fix build on darwin
Diffstat (limited to 'pkgs/development/tools/misc')
-rw-r--r--pkgs/development/tools/misc/go-license-detector/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/tools/misc/go-license-detector/default.nix b/pkgs/development/tools/misc/go-license-detector/default.nix
index 6675f7ed3e2..7ab7ff8b742 100644
--- a/pkgs/development/tools/misc/go-license-detector/default.nix
+++ b/pkgs/development/tools/misc/go-license-detector/default.nix
@@ -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;