diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2022-03-22 12:05:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 12:05:17 +0100 |
commit | 1097cc4e8ef4f8c6e300dd0b64698e44570af855 (patch) | |
tree | 5dbee15560b87db9418b3b85e9fb4b3468a5ca74 /pkgs/development/tools | |
parent | b9a5923ac46a524970b0cd2e19a0a0b1e61c2621 (diff) | |
parent | 24781cfa0df812ebf1d7c1bd617b49b22e3d57e8 (diff) | |
download | nixlib-1097cc4e8ef4f8c6e300dd0b64698e44570af855.tar nixlib-1097cc4e8ef4f8c6e300dd0b64698e44570af855.tar.gz nixlib-1097cc4e8ef4f8c6e300dd0b64698e44570af855.tar.bz2 nixlib-1097cc4e8ef4f8c6e300dd0b64698e44570af855.tar.lz nixlib-1097cc4e8ef4f8c6e300dd0b64698e44570af855.tar.xz nixlib-1097cc4e8ef4f8c6e300dd0b64698e44570af855.tar.zst nixlib-1097cc4e8ef4f8c6e300dd0b64698e44570af855.zip |
Merge pull request #165229 from peterromfeldhk/peter-tfsec
tfsec: 1.2.1 -> 1.13.0
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/analysis/tfsec/default.nix | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/pkgs/development/tools/analysis/tfsec/default.nix b/pkgs/development/tools/analysis/tfsec/default.nix index 87e7676da899..6c2427d3724a 100644 --- a/pkgs/development/tools/analysis/tfsec/default.nix +++ b/pkgs/development/tools/analysis/tfsec/default.nix @@ -1,31 +1,38 @@ { lib -, buildGoPackage +, buildGoModule , fetchFromGitHub }: -buildGoPackage rec { +buildGoModule rec { pname = "tfsec"; - version = "1.2.1"; + version = "1.13.0"; src = fetchFromGitHub { owner = "aquasecurity"; repo = pname; rev = "v${version}"; - sha256 = "sha256-KIS2o2pLus5aohRYsabWRxZs4KfYM6PXSNp0JZhhlZk="; + sha256 = "sha256-/N8p/tw97sDW4I1ysfJ2QXACGsSc5nRFSu6jHwQvPU4="; }; - goPackagePath = "github.com/aquasecurity/tfsec"; - ldflags = [ - "-w" - "-s" - "-X ${goPackagePath}/version.Version=${version}" + "-s" "-w" + "-X github.com/aquasecurity/tfsec/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; { description = "Static analysis powered security scanner for terraform code"; homepage = "https://github.com/aquasecurity/tfsec"; license = licenses.mit; - maintainers = with maintainers; [ fab marsam ]; + maintainers = with maintainers; [ fab marsam peterromfeldhk ]; }; } |