about summary refs log tree commit diff
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
parente55240ee9acae1afd315149f42fc7217eddd0777 (diff)
downloadnixlib-074703a553289cd0f9ec414bdd645e61ab64b670.tar
nixlib-074703a553289cd0f9ec414bdd645e61ab64b670.tar.gz
nixlib-074703a553289cd0f9ec414bdd645e61ab64b670.tar.bz2
nixlib-074703a553289cd0f9ec414bdd645e61ab64b670.tar.lz
nixlib-074703a553289cd0f9ec414bdd645e61ab64b670.tar.xz
nixlib-074703a553289cd0f9ec414bdd645e61ab64b670.tar.zst
nixlib-074703a553289cd0f9ec414bdd645e61ab64b670.zip
tflint: fix build on darwin
-rw-r--r--pkgs/development/tools/analysis/tflint/default.nix6
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/tools/analysis/tflint/default.nix b/pkgs/development/tools/analysis/tflint/default.nix
index 8f370d2e0aa1..475ff662b85a 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}";
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index c15abe9e7bca..c3ee99f15a26 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -10962,7 +10962,9 @@ in
     inherit (darwin.apple_sdk.frameworks) Security;
   };
 
-  tflint = callPackage ../development/tools/analysis/tflint { };
+  tflint = callPackage ../development/tools/analysis/tflint {
+    inherit (darwin.apple_sdk.frameworks) Security;
+  };
 
   tfsec = callPackage ../development/tools/analysis/tfsec { };