tflint-plugins: small compatibility fixes, version update (#411805)

authored by Florian Klink and committed by GitHub 7f25223c 490fa181

+23 -4
+2 -1
pkgs/by-name/tf/tflint/package.nix
··· 43 43 paths = [ actualPlugins ]; 44 44 }; 45 45 in 46 - runCommand "tflint-with-plugins" 46 + runCommand "tflint-with-plugins-${version}" 47 47 { 48 48 nativeBuildInputs = [ makeWrapper ]; 49 + inherit version; 49 50 } 50 51 '' 51 52 makeWrapper ${tflint}/bin/tflint $out/bin/tflint \
+15 -3
pkgs/development/tools/analysis/tflint-plugins/tflint-ruleset-aws.nix
··· 6 6 7 7 buildGoModule rec { 8 8 pname = "tflint-ruleset-aws"; 9 - version = "0.37.0"; 9 + version = "0.40.0"; 10 10 11 11 src = fetchFromGitHub { 12 12 owner = "terraform-linters"; 13 13 repo = pname; 14 14 rev = "v${version}"; 15 - hash = "sha256-7xS1V7Ec3eWiVjMB/4MLeKlGxNKRYeHVFc61dpoBU/8="; 15 + hash = "sha256-n8o43zCZWrTmLdEuCPe9B1lqxnCbytwRUXSof2sI1Zw="; 16 16 }; 17 17 18 - vendorHash = "sha256-XUGcRky0GMV2RSahUk6k/KWkWvxdCLi/7TpXn2MdNoM="; 18 + vendorHash = "sha256-PBXObv/9QwWPmLnTReV7iuFyas1RFtvlboEjPfyIi7w="; 19 + 20 + postPatch = '' 21 + # some automation for creating new releases on GitHub, which we don't need 22 + rm -rf tools/release 23 + ''; 19 24 20 25 # upstream Makefile also does a go test $(go list ./... | grep -v integration) 21 26 preCheck = '' ··· 23 28 ''; 24 29 25 30 postInstall = '' 31 + # allow use as a versioned dependency, i.e., with `source = ...` and 32 + # `version = ...` in `.tflintrc`: 26 33 mkdir -p $out/github.com/terraform-linters/${pname}/${version} 27 34 mv $out/bin/${pname} $out/github.com/terraform-linters/${pname}/${version}/ 35 + 36 + # allow use as an unversioned dependency, e.g., if one wants `.tflintrc` to 37 + # solely rely on Nix to pin versions: 38 + ln -s $out/github.com/terraform-linters/${pname}/${version}/${pname} $out/ 39 + 28 40 # remove other binaries from bin 29 41 rm -R $out/bin 30 42 '';
+6
pkgs/development/tools/analysis/tflint-plugins/tflint-ruleset-google.nix
··· 25 25 subPackages = [ "." ]; 26 26 27 27 postInstall = '' 28 + # allow use as a versioned dependency, i.e., with `source = ...` and 29 + # `version = ...` in `.tflintrc`: 28 30 mkdir -p $out/github.com/terraform-linters/${pname}/${version} 29 31 mv $out/bin/${pname} $out/github.com/terraform-linters/${pname}/${version}/ 32 + 33 + # allow use as an unversioned dependency, e.g., if one wants `.tflintrc` to 34 + # solely rely on Nix to pin versions: 35 + ln -s $out/github.com/terraform-linters/${pname}/${version}/${pname} $out/ 30 36 ''; 31 37 32 38 meta = with lib; {