nixpkgs/pkgs/development/tools/hjson-go/default.nix

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

33 lines
650 B
Nix
Raw Normal View History

2022-12-13 16:11:41 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2022-05-02 02:58:56 +00:00
buildGoModule rec {
pname = "hjson-go";
2022-12-13 09:49:05 +00:00
version = "4.3.0";
src = fetchFromGitHub {
owner = "hjson";
repo = pname;
rev = "v${version}";
2022-12-13 16:11:41 +00:00
hash = "sha256-WR6wLa/Za5MgcH1enHG/74uq/7PdaY/OzvJdgMgDFIk=";
};
2022-07-28 14:37:32 +00:00
vendorSha256 = null;
2022-12-13 16:11:41 +00:00
ldflags = [
"-s"
"-w"
];
2022-05-02 02:58:56 +00:00
meta = with lib; {
description = "Utility to convert JSON to and from HJSON";
homepage = "https://hjson.github.io/";
2022-12-13 16:11:41 +00:00
changelog = "https://github.com/hjson/hjson-go/releases/tag/v${version}";
2022-05-02 02:58:56 +00:00
maintainers = with maintainers; [ ehmry ];
license = licenses.mit;
mainProgram = "hjson-cli";
};
}