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";
|
2023-02-06 09:30:00 +00:00
|
|
|
version = "5.1.0";
|
2019-06-21 15:30:57 +00:00
|
|
|
|
2020-12-23 17:23:09 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sclevine";
|
|
|
|
repo = "yj";
|
2023-02-06 09:30:00 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-lsn5lxtix5W7po6nzvGcHmifbyhrtHgvaKYT7RPPCOg=";
|
2019-06-21 15:30:57 +00:00
|
|
|
};
|
|
|
|
|
2023-02-06 09:30:00 +00:00
|
|
|
vendorHash = "sha256-NeSOoL9wtFzq6ba8ghseB6D+Qq8Z5holQExcAUbtYrs=";
|
2020-12-23 17:23:09 +00:00
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|