5557ff764c
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
26 lines
738 B
Nix
26 lines
738 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "hclfmt";
|
|
version = "2.16.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hashicorp";
|
|
repo = "hcl";
|
|
rev = "v${version}";
|
|
hash = "sha256-EsqOpVCsn0bD0BAOoFifH1hfEF8Wu8bUpM0/BSXAewY=";
|
|
};
|
|
|
|
vendorHash = "sha256-QZzDFVAmmjkm7n/KpMxDMAjShKiVVGZbZB1W3/TeVjs=";
|
|
|
|
# The code repository includes other tools which are not useful. Only build
|
|
# hclfmt.
|
|
subPackages = [ "cmd/hclfmt" ];
|
|
|
|
meta = with lib; {
|
|
description = "a code formatter for the Hashicorp Configuration Language (HCL) format";
|
|
homepage = "https://github.com/hashicorp/hcl/tree/main/cmd/hclfmt";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
};
|
|
}
|