5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
32 lines
648 B
Nix
32 lines
648 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "hjson-go";
|
|
version = "4.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hjson";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-WR6wLa/Za5MgcH1enHG/74uq/7PdaY/OzvJdgMgDFIk=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Utility to convert JSON to and from HJSON";
|
|
homepage = "https://hjson.github.io/";
|
|
changelog = "https://github.com/hjson/hjson-go/releases/tag/v${version}";
|
|
maintainers = with maintainers; [ ehmry ];
|
|
license = licenses.mit;
|
|
mainProgram = "hjson-cli";
|
|
};
|
|
}
|