mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
28 lines
764 B
Nix
28 lines
764 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "hclfmt";
|
|
version = "2.23.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hashicorp";
|
|
repo = "hcl";
|
|
rev = "v${version}";
|
|
hash = "sha256-0RRvkOBPVrdbZo9zbVgZletKNXPBsN7pa7fsyfI9hXg=";
|
|
};
|
|
|
|
vendorHash = "sha256-F2i7ph9GL9Xo43da6jHPn9P9FdWC6eSgqCyHPBxdFJY=";
|
|
|
|
# The code repository includes other tools which are not useful. Only build
|
|
# hclfmt.
|
|
subPackages = [ "cmd/hclfmt" ];
|
|
|
|
meta = with lib; {
|
|
description = "Code formatter for the Hashicorp Configuration Language (HCL) format";
|
|
homepage = "https://github.com/hashicorp/hcl/tree/main/cmd/hclfmt";
|
|
license = licenses.mpl20;
|
|
mainProgram = "hclfmt";
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
};
|
|
}
|