tfsec: migrate to ldflags

This commit is contained in:
Fabian Affolter 2021-07-06 09:28:10 +02:00
parent a61ffbaae6
commit 19c2dee0b8

View file

@ -13,12 +13,16 @@ buildGoPackage rec {
goPackagePath = "github.com/tfsec/tfsec";
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/version.Version=${version}" ];
ldflags = [
"-w"
"-s"
"-X ${goPackagePath}/version.Version=${version}"
];
meta = with lib; {
homepage = "https://github.com/tfsec/tfsec";
description = "Static analysis powered security scanner for your terraform code";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
maintainers = with maintainers; [ marsam ];
};
}