nixpkgs/pkgs/by-name/hj/hjson-go/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
648 B
Nix
Raw Normal View History

2022-12-13 17:11:41 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2022-05-02 04:58:56 +02:00
buildGoModule rec {
pname = "hjson-go";
2023-12-15 23:37:41 +01:00
version = "4.4.0";
src = fetchFromGitHub {
owner = "hjson";
repo = pname;
rev = "v${version}";
2023-12-15 23:37:41 +01:00
hash = "sha256-fonPxk/9ue8LzHTdKpuHJcucQoMl4P6gq+tbjS8Ui7Q=";
};
vendorHash = null;
2022-12-13 17:11:41 +01:00
ldflags = [
"-s"
"-w"
];
2022-05-02 04:58:56 +02:00
meta = with lib; {
description = "Utility to convert JSON to and from HJSON";
homepage = "https://hjson.github.io/";
2022-12-13 17:11:41 +01:00
changelog = "https://github.com/hjson/hjson-go/releases/tag/v${version}";
2022-05-02 04:58:56 +02:00
maintainers = with maintainers; [ ehmry ];
license = licenses.mit;
mainProgram = "hjson-cli";
};
}