json2hcl: init at 0.0.6

Fixes #36416
This commit is contained in:
Matthew Bauer 2018-03-07 22:06:50 -06:00
parent 0b04beb805
commit 7272190333
3 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "json2hcl";
name = "${pname}-${version}";
version = "0.0.6";
src = fetchFromGitHub {
inherit owner;
repo = pname;
rev = "v${version}";
sha256 = "0knil88n2w41w3nzqz6ljgfjkl5r3x0bh7ifqgiyf6sin3pl4pn0";
};
owner = "kvz";
goPackagePath = "github.com/${owner}/${pname}";
goDeps = ./deps.nix;
meta = with stdenv.lib; {
description = "Convert JSON to HCL, and vice versa";
license = with licenses; [ mit ];
maintainers = [ maintainers.matthewbauer ];
};
}

View file

@ -0,0 +1,20 @@
[
{
goPackagePath = "github.com/Acconut/hcl";
fetch = {
type = "git";
url = "https://github.com/Acconut/hcl";
rev = "23c074d0eceb2b8a5bfdbb271ab780cde70f05a8";
sha256 = "0db4lpqb5m130rmfy3s3gjjf4dxllypmyrzxv6ggqhkmwmc7w4mc";
};
}
{
goPackagePath = "github.com/hashicorp/hcl";
fetch = {
type = "git";
url = "https://github.com/hashicorp/hcl";
rev = "23c074d0eceb2b8a5bfdbb271ab780cde70f05a8";
sha256 = "0db4lpqb5m130rmfy3s3gjjf4dxllypmyrzxv6ggqhkmwmc7w4mc";
};
}
]

View file

@ -9359,6 +9359,8 @@ with pkgs;
jshon = callPackage ../development/tools/parsing/jshon { };
json2hcl = callPackage ../development/tools/json2hcl { };
json-glib = callPackage ../development/libraries/json-glib { };
json-c-0-11 = callPackage ../development/libraries/json-c/0.11.nix { }; # vulnerable