Merge pull request #36482 from matthewbauer/json2hcl

json2hcl: init at 0.0.6
This commit is contained in:
Joachim F 2018-03-14 20:51:12 +00:00 committed by GitHub
commit bfb4e0822a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{ stdenv, lib, 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 lib; {
description = "Convert JSON to HCL, and vice versa";
license = with licenses; [ mit ];
maintainers = [ maintainers.matthewbauer ];
platforms = platforms.unix;
};
}

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

@ -9397,6 +9397,8 @@ with pkgs;
jshon = callPackage ../development/tools/parsing/jshon { };
json2hcl = callPackage ../development/tools/json2hcl { };
json-glib = callPackage ../development/libraries/json-glib { };
json_c = callPackage ../development/libraries/json-c { };