Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildGoModule
3, fetchFromGitHub
4}:
5
6buildGoModule rec {
7 pname = "hjson-go";
8 version = "4.3.0";
9
10 src = fetchFromGitHub {
11 owner = "hjson";
12 repo = pname;
13 rev = "v${version}";
14 hash = "sha256-WR6wLa/Za5MgcH1enHG/74uq/7PdaY/OzvJdgMgDFIk=";
15 };
16
17 vendorSha256 = null;
18
19 ldflags = [
20 "-s"
21 "-w"
22 ];
23
24 meta = with lib; {
25 description = "Utility to convert JSON to and from HJSON";
26 homepage = "https://hjson.github.io/";
27 changelog = "https://github.com/hjson/hjson-go/releases/tag/v${version}";
28 maintainers = with maintainers; [ ehmry ];
29 license = licenses.mit;
30 mainProgram = "hjson-cli";
31 };
32}