2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-06-21 15:30:57 +00:00
|
|
|
|
2020-12-23 17:23:09 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "yj";
|
2020-12-23 17:23:09 +00:00
|
|
|
version = "5.0.0";
|
2019-06-21 15:30:57 +00:00
|
|
|
|
2020-12-23 17:23:09 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sclevine";
|
|
|
|
repo = "yj";
|
|
|
|
rev = "c4c13b7641389c76ea028b48091f851f3efb6376";
|
|
|
|
sha256 = "0bnb88wfm2vagh4yb1h9xhp3045ga0b6a77n3j2z5b4mvwshx5dr";
|
2019-06-21 15:30:57 +00:00
|
|
|
};
|
|
|
|
|
2020-12-23 17:23:09 +00:00
|
|
|
vendorSha256 = "0y0n9fsb85qlpf9slwsxzarmfi98asa4x04qp2r8pagl28l0i8wv";
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
|
2019-06-21 15:30:57 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "Convert YAML <=> TOML <=> JSON <=> HCL";
|
2019-06-21 15:30:57 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ Profpatsch ];
|
2020-12-23 17:23:09 +00:00
|
|
|
homepage = "https://github.com/sclevine/yj";
|
2019-06-21 15:30:57 +00:00
|
|
|
};
|
|
|
|
}
|