summary refs log tree commit diff
path: root/pkgs/development/tools/analysis/tflint
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-21 06:16:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-03-21 06:16:00 -0500
commit074703a553289cd0f9ec414bdd645e61ab64b670 (patch)
tree60870ce3c419988010ad55f009589c93dea3bdc7 /pkgs/development/tools/analysis/tflint
parente55240ee9acae1afd315149f42fc7217eddd0777 (diff)
downloadnixpkgs-074703a553289cd0f9ec414bdd645e61ab64b670.tar
nixpkgs-074703a553289cd0f9ec414bdd645e61ab64b670.tar.gz
nixpkgs-074703a553289cd0f9ec414bdd645e61ab64b670.tar.bz2
nixpkgs-074703a553289cd0f9ec414bdd645e61ab64b670.tar.lz
nixpkgs-074703a553289cd0f9ec414bdd645e61ab64b670.tar.xz
nixpkgs-074703a553289cd0f9ec414bdd645e61ab64b670.tar.zst
nixpkgs-074703a553289cd0f9ec414bdd645e61ab64b670.zip
tflint: fix build on darwin
Diffstat (limited to 'pkgs/development/tools/analysis/tflint')
-rw-r--r--pkgs/development/tools/analysis/tflint/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/tools/analysis/tflint/default.nix b/pkgs/development/tools/analysis/tflint/default.nix
index 8f370d2e0aa..475ff662b85 100644
--- a/pkgs/development/tools/analysis/tflint/default.nix
+++ b/pkgs/development/tools/analysis/tflint/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, fetchFromGitHub }:
+{ stdenv, buildGoModule, fetchFromGitHub, Security }:
 
 buildGoModule rec {
   pname = "tflint";
@@ -13,9 +13,11 @@ buildGoModule rec {
 
   modSha256 = "1jbnsqa0ga372lhbgfnqvx8pdzrm0b2phzzwll4sgd0k1hzv2aqv";
 
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
+
   subPackages = [ "." ];
 
-  meta = with lib; {
+  meta = with stdenv.lib; {
     description = "Terraform linter focused on possible errors, best practices, and so on";
     homepage = "https://github.com/terraform-linters/tflint";
     changelog = "https://github.com/terraform-linters/tflint/releases/tag/v${version}";