···2525 subPackages = [ "." ];
26262727 postInstall = ''
2828+ # allow use as a versioned dependency, i.e., with `source = ...` and
2929+ # `version = ...` in `.tflintrc`:
2830 mkdir -p $out/github.com/terraform-linters/${pname}/${version}
2931 mv $out/bin/${pname} $out/github.com/terraform-linters/${pname}/${version}/
3232+3333+ # allow use as an unversioned dependency, e.g., if one wants `.tflintrc` to
3434+ # solely rely on Nix to pin versions:
3535+ ln -s $out/github.com/terraform-linters/${pname}/${version}/${pname} $out/
3036 '';
31373238 meta = with lib; {