15 src = fetchFromGitHub {
16 owner = "terraform-linters";
19 hash = "sha256-PfPynSPuMhiyQW9f6HY2WDNlmtltU4xOo0A88I/bCuI=";
22 vendorHash = "sha256-HjvEbEfPVeqAVmVKCJHYPSZjZc19DV1HDaz/HcBJAUg=";
26 subPackages = [ "." ];
28 ldflags = [ "-s" "-w" ];
30 passthru.withPlugins = plugins:
32 actualPlugins = plugins tflint-plugins;
33 pluginDir = symlinkJoin {
34 name = "tflint-plugin-dir";
35 paths = [ actualPlugins ];
38 runCommand "tflint-with-plugins"
40 nativeBuildInputs = [ makeWrapper ];
42 makeWrapper ${tflint}/bin/tflint $out/bin/tflint \
43 --set TFLINT_PLUGIN_DIR "${pluginDir}"
47 description = "Terraform linter focused on possible errors, best practices, and so on";
48 mainProgram = "tflint";
49 homepage = "https://github.com/terraform-linters/tflint";
50 changelog = "https://github.com/terraform-linters/tflint/blob/v${version}/CHANGELOG.md";
51 license = licenses.mpl20;
52 maintainers = [ maintainers.marsam ];