terragrunt: remove unused dependency and compile smaller

Removed makeWrapper as it's been unused since we stopped wrapping up TF
Added -s and -w ldflags to minify terragrunt
wip/yesman
06kellyjac 3 years ago
parent 13a6565c4c
commit ca1bc75f9f
  1. 11
      pkgs/applications/networking/cluster/terragrunt/default.nix

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, makeWrapper }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "terragrunt";
@ -15,9 +15,12 @@ buildGoModule rec {
doCheck = false;
buildInputs = [ makeWrapper ];
buildFlagsArray = [ "-ldflags=" "-X main.VERSION=v${version}" ];
buildFlagsArray = [
"-ldflags="
"-s"
"-w"
"-X main.VERSION=v${version}"
];
meta = with lib; {
description = "A thin wrapper for Terraform that supports locking for Terraform state and enforces best practices";

Loading…
Cancel
Save