forked from mirrors/nixpkgs
Merge pull request #165229 from peterromfeldhk/peter-tfsec
tfsec: 1.2.1 -> 1.13.0
This commit is contained in:
commit
1097cc4e8e
|
@ -1,31 +1,38 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildGoPackage
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "tfsec";
|
pname = "tfsec";
|
||||||
version = "1.2.1";
|
version = "1.13.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aquasecurity";
|
owner = "aquasecurity";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-KIS2o2pLus5aohRYsabWRxZs4KfYM6PXSNp0JZhhlZk=";
|
sha256 = "sha256-/N8p/tw97sDW4I1ysfJ2QXACGsSc5nRFSu6jHwQvPU4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
goPackagePath = "github.com/aquasecurity/tfsec";
|
|
||||||
|
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-w"
|
"-s" "-w"
|
||||||
"-s"
|
"-X github.com/aquasecurity/tfsec/version.Version=${version}"
|
||||||
"-X ${goPackagePath}/version.Version=${version}"
|
## not sure if this is needed (https://github.com/aquasecurity/tfsec/blob/master/.goreleaser.yml#L6)
|
||||||
|
# "-extldflags '-fno-PIC -static'"
|
||||||
|
];
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-nTma96kT84mpJHRA9+/sZQVvwtz9arv/OHY9lgWJDFc=";
|
||||||
|
|
||||||
|
subPackages = [
|
||||||
|
"cmd/tfsec"
|
||||||
|
"cmd/tfsec-docs"
|
||||||
|
"cmd/tfsec-checkgen"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Static analysis powered security scanner for terraform code";
|
description = "Static analysis powered security scanner for terraform code";
|
||||||
homepage = "https://github.com/aquasecurity/tfsec";
|
homepage = "https://github.com/aquasecurity/tfsec";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab marsam ];
|
maintainers = with maintainers; [ fab marsam peterromfeldhk ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue