2018-07-21 02:44:44 +02:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2018-03-08 05:06:50 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
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";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = [ maintainers.matthewbauer ];
|
2018-03-14 21:31:40 +01:00
|
|
|
platforms = platforms.unix;
|
2018-03-08 05:06:50 +01:00
|
|
|
};
|
|
|
|
}
|