depot/third_party/nixpkgs/pkgs/by-name/hj/hjson-go/package.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

32 lines
648 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "hjson-go";
version = "4.4.0";
src = fetchFromGitHub {
owner = "hjson";
repo = pname;
rev = "v${version}";
hash = "sha256-fonPxk/9ue8LzHTdKpuHJcucQoMl4P6gq+tbjS8Ui7Q=";
};
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";
};
}