forked from mirrors/nixpkgs
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:
parent
3131757b9f
commit
eb5ea1500b
26
pkgs/development/tools/hclfmt/default.nix
Normal file
26
pkgs/development/tools/hclfmt/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue