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

This commit is contained in:
Anthony ROUSSEL
2025-09-21 21:59:52 +02:00
parent cfeec4150a
commit 3e4d98de12
+8 -1
View File
@@ -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 ];