nixpkgs/pkgs/development/tools/json2hcl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
584 B
Nix
Raw Normal View History

2022-05-27 11:52:01 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
2018-03-08 04:06:50 +00:00
2022-05-27 11:52:01 +00:00
buildGoModule rec {
2018-03-08 04:06:50 +00:00
pname = "json2hcl";
2022-07-28 17:29:39 +00:00
version = "0.1.1";
2018-03-08 04:06:50 +00:00
src = fetchFromGitHub {
2022-05-27 11:52:01 +00:00
owner = "kvz";
2018-03-08 04:06:50 +00:00
repo = pname;
rev = "v${version}";
2022-07-28 17:29:39 +00:00
sha256 = "sha256-0ku8sON4fzWAirqY+dhYAks2LSyC7OH/LKI0kb+QhpM=";
2018-03-08 04:06:50 +00:00
};
vendorHash = "sha256-GxYuFak+5CJyHgC1/RsS0ub84bgmgL+bI4YKFTb+vIY=";
2022-05-27 11:52:01 +00:00
ldflags = [ "-s" "-w" ];
2018-03-08 04:06:50 +00:00
2018-03-14 20:31:40 +00:00
meta = with lib; {
2018-03-08 04:06:50 +00:00
description = "Convert JSON to HCL, and vice versa";
2022-05-27 11:52:01 +00:00
homepage = "https://github.com/kvz/json2hcl";
license = licenses.mit;
maintainers = with maintainers; [ matthewbauer ];
2018-03-08 04:06:50 +00:00
};
}