depot/third_party/nixpkgs/pkgs/development/tools/json2hcl/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

24 lines
586 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "json2hcl";
version = "0.0.7";
src = fetchFromGitHub {
owner = "kvz";
repo = pname;
rev = "v${version}";
sha256 = "sha256-H3jDZL/guVwJIZs7PD/rIvH3ZRYQzNTU/iUvy8aXs0o=";
};
vendorSha256 = "sha256-GxYuFak+5CJyHgC1/RsS0ub84bgmgL+bI4YKFTb+vIY=";
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "Convert JSON to HCL, and vice versa";
homepage = "https://github.com/kvz/json2hcl";
license = licenses.mit;
maintainers = with maintainers; [ matthewbauer ];
};
}