15 src = fetchFromGitHub {
16 owner = "terraform-linters";
19 sha256 = "sha256-hlmIf8VD8LUxHrhEephw1e+RK6e+Jdf1HvhHu6bZxco=";
22 vendorSha256 = "sha256-KDXS/YWuA83MeBF6rXn3zm0oIHWJaxhdQazD2kRR0mM=";
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 homepage = "https://github.com/terraform-linters/tflint";
49 changelog = "https://github.com/terraform-linters/tflint/raw/v${version}/CHANGELOG.md";
50 license = licenses.mpl20;
51 maintainers = [ maintainers.marsam ];