1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "json2hcl";
5 version = "0.1.1";
6
7 src = fetchFromGitHub {
8 owner = "kvz";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-0ku8sON4fzWAirqY+dhYAks2LSyC7OH/LKI0kb+QhpM=";
12 };
13
14 vendorSha256 = "sha256-GxYuFak+5CJyHgC1/RsS0ub84bgmgL+bI4YKFTb+vIY=";
15
16 ldflags = [ "-s" "-w" ];
17
18 meta = with lib; {
19 description = "Convert JSON to HCL, and vice versa";
20 homepage = "https://github.com/kvz/json2hcl";
21 license = licenses.mit;
22 maintainers = with maintainers; [ matthewbauer ];
23 };
24}