2022-04-27 09:35:20 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-12-21 02:18:32 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
buildGoModule rec {
|
2021-12-21 02:18:32 +00:00
|
|
|
pname = "hjson-go";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "4.2.0";
|
2021-12-21 02:18:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hjson";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-bw8dQKwHqEzBpDT+59XjzhxDrA3R0OiEUyIWMULuAQI=";
|
2021-12-21 02:18:32 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
vendorSha256 = null;
|
2021-12-21 02:18:32 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Utility to convert JSON to and from HJSON";
|
|
|
|
homepage = "https://hjson.github.io/";
|
|
|
|
maintainers = with maintainers; [ ehmry ];
|
|
|
|
license = licenses.mit;
|
|
|
|
mainProgram = "hjson-cli";
|
|
|
|
};
|
2021-12-21 02:18:32 +00:00
|
|
|
}
|