Unverified Commit e1054f7c authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

hclfmt: renew (#428002)

parents be9a652e 555fee28
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -4,14 +4,14 @@
  fetchFromGitHub,
}:

buildGoModule rec {
buildGoModule (finalAttrs: {
  pname = "hclfmt";
  version = "2.24.0";

  src = fetchFromGitHub {
    owner = "hashicorp";
    repo = "hcl";
    rev = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-YWGd2rQXJ4AX8nhByYRdp+91PJeHrdCpxvKQntxzRhY=";
  };

@@ -21,11 +21,12 @@ buildGoModule rec {
  # hclfmt.
  subPackages = [ "cmd/hclfmt" ];

  meta = with lib; {
  meta = {
    description = "Code formatter for the Hashicorp Configuration Language (HCL) format";
    homepage = "https://github.com/hashicorp/hcl/tree/main/cmd/hclfmt";
    license = licenses.mpl20;
    changelog = "https://github.com/hashicorp/hcl/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.mpl20;
    mainProgram = "hclfmt";
    maintainers = with maintainers; [ zimbatm ];
    maintainers = with lib.maintainers; [ zimbatm ];
  };
}
})