terracognita: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 06:15:00 -05:00
parent 8b8dff4cc9
commit e55240ee9a
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 = "terracognita";
@ -13,11 +13,13 @@ buildGoModule rec {
modSha256 = "0xlhp8pa5g6an10m56g237pixc4h6ay89hkp1ijdz45iyfn9fk91";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
subPackages = [ "." ];
buildFlagsArray = [ "-ldflags=-s -w -X github.com/cycloidio/terracognita/cmd.Version=${version}" ];
meta = with lib; {
meta = with stdenv.lib; {
description = "Reads from existing Cloud Providers (reverse Terraform) and generates your infrastructure as code on Terraform configuration";
homepage = "https://github.com/cycloidio/terracognita";
license = licenses.mit;

View file

@ -10939,7 +10939,9 @@ in
teensy-loader-cli = callPackage ../development/tools/misc/teensy-loader-cli { };
terracognita = callPackage ../development/tools/misc/terracognita { };
terracognita = callPackage ../development/tools/misc/terracognita {
inherit (darwin.apple_sdk.frameworks) Security;
};
terraform-lsp = callPackage ../development/tools/misc/terraform-lsp { };