depot/third_party/nixpkgs/pkgs/development/tools/json2hcl/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

24 lines
586 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "json2hcl";
version = "0.1.1";
src = fetchFromGitHub {
owner = "kvz";
repo = pname;
rev = "v${version}";
sha256 = "sha256-0ku8sON4fzWAirqY+dhYAks2LSyC7OH/LKI0kb+QhpM=";
};
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 ];
};
}