2022-05-02 04:58:56 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2021-11-14 17:42:56 +01:00
|
|
|
|
2022-05-02 04:58:56 +02:00
|
|
|
buildGoModule rec {
|
2021-11-14 17:42:56 +01:00
|
|
|
pname = "hjson-go";
|
2022-12-13 10:49:05 +01:00
|
|
|
version = "4.3.0";
|
2021-11-14 17:42:56 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hjson";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-12-13 10:49:05 +01:00
|
|
|
sha256 = "sha256-WR6wLa/Za5MgcH1enHG/74uq/7PdaY/OzvJdgMgDFIk=";
|
2021-11-14 17:42:56 +01:00
|
|
|
};
|
|
|
|
|
2022-07-28 16:37:32 +02:00
|
|
|
vendorSha256 = null;
|
2021-11-14 17:42:56 +01:00
|
|
|
|
2022-05-02 04:58:56 +02: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-11-14 17:42:56 +01:00
|
|
|
}
|