From a61ffbaae63339a9fc4725c49756032112f240ce Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 6 Jul 2021 09:18:39 +0200 Subject: [PATCH 1/2] tfsec: 0.40.7 -> 0.41.0 --- pkgs/development/tools/analysis/tfsec/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/analysis/tfsec/default.nix b/pkgs/development/tools/analysis/tfsec/default.nix index 4e11d92e9682..ad43e716a1e5 100644 --- a/pkgs/development/tools/analysis/tfsec/default.nix +++ b/pkgs/development/tools/analysis/tfsec/default.nix @@ -2,13 +2,13 @@ buildGoPackage rec { pname = "tfsec"; - version = "0.40.7"; + version = "0.41.0"; src = fetchFromGitHub { owner = "tfsec"; repo = pname; rev = "v${version}"; - sha256 = "1cdxpmlfh76k491ldzv2flxs2wikrryr63h0zw8f6yvhkpbqf4cc"; + sha256 = "sha256-MK5cWRPGty7S4pkRZJRZF5qitoPM3im8JJW2J3yQqFo="; }; goPackagePath = "github.com/tfsec/tfsec"; From 19c2dee0b8ebc8430aa193d22b87393ab6d9b63e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 6 Jul 2021 09:28:10 +0200 Subject: [PATCH 2/2] tfsec: migrate to ldflags --- pkgs/development/tools/analysis/tfsec/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/analysis/tfsec/default.nix b/pkgs/development/tools/analysis/tfsec/default.nix index ad43e716a1e5..da0e0554bf70 100644 --- a/pkgs/development/tools/analysis/tfsec/default.nix +++ b/pkgs/development/tools/analysis/tfsec/default.nix @@ -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 ]; }; }