hclfmt: init at 2.12.0 (#182472)

* hclfmt: init at 2.12.0

Co-authored-by: Winter <winter@winter.cafe>
This commit is contained in:
Jonas Chevalier 2022-07-25 20:15:58 +02:00 committed by GitHub
parent 3131757b9f
commit eb5ea1500b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "hclfmt";
version = "2.12.0";
src = fetchFromGitHub {
owner = "hashicorp";
repo = "hcl";
rev = "v${version}";
hash = "sha256-tL0jkddKmfQu3a4BDw/RCwQqhRrPf9XWXHl/nG09yVc=";
};
vendorSha256 = "sha256-Wa0tDgHgSPVY6GNxCv9mGWSSi/NuwZq1VO+jwUCMvNI=";
# 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 ];
};
}

View file

@ -16082,6 +16082,8 @@ with pkgs;
hcloud = callPackage ../development/tools/hcloud { };
hclfmt = callPackage ../development/tools/hclfmt { };
help2man = callPackage ../development/tools/misc/help2man { };
heroku = callPackage ../development/tools/heroku { };