Commit 3e4d98de authored by Anthony ROUSSEL's avatar Anthony ROUSSEL
Browse files

terraform-docs: build with CGO_ENABLED=0, strip debug information

parent cfeec415
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -16,12 +16,19 @@ buildGo124Module rec {
  src = fetchFromGitHub {
    owner = "terraform-docs";
    repo = "terraform-docs";
    rev = "v${version}";
    tag = "v${version}";
    hash = "sha256-DiKoYAe7vcNy35ormKHYZcZrGK/MEb6VmcHWPgrbmUg=";
  };

  vendorHash = "sha256-ynyYpX41LJxGhf5kF2AULj+VKROjsvTjVPBnqG+JGSg=";

  ldflags = [
    "-s"
    "-w"
  ];

  env.CGO_ENABLED = 0;

  excludedPackages = [ "scripts" ];

  nativeBuildInputs = [ installShellFiles ];