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
586 B
Nix
Raw Normal View History

2022-05-27 13:52:01 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
2018-03-08 05:06:50 +01:00
2022-05-27 13:52:01 +02:00
buildGoModule rec {
2018-03-08 05:06:50 +01:00
pname = "json2hcl";
2022-05-27 13:52:01 +02:00
version = "0.0.7";
2018-03-08 05:06:50 +01:00
src = fetchFromGitHub {
2022-05-27 13:52:01 +02:00
owner = "kvz";
2018-03-08 05:06:50 +01:00
repo = pname;
rev = "v${version}";
2022-05-27 13:52:01 +02:00
sha256 = "sha256-H3jDZL/guVwJIZs7PD/rIvH3ZRYQzNTU/iUvy8aXs0o=";
2018-03-08 05:06:50 +01:00
};
2022-05-27 13:52:01 +02:00
vendorSha256 = "sha256-GxYuFak+5CJyHgC1/RsS0ub84bgmgL+bI4YKFTb+vIY=";
ldflags = [ "-s" "-w" ];
2018-03-08 05:06:50 +01:00
2018-03-14 21:31:40 +01:00
meta = with lib; {
2018-03-08 05:06:50 +01:00
description = "Convert JSON to HCL, and vice versa";
2022-05-27 13:52:01 +02:00
homepage = "https://github.com/kvz/json2hcl";
license = licenses.mit;
maintainers = with maintainers; [ matthewbauer ];
2018-03-08 05:06:50 +01:00
};
}