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.

26 lines
611 B
Nix
Raw Normal View History

2022-05-02 02:58:56 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
2022-05-02 02:58:56 +00:00
buildGoModule rec {
pname = "hjson-go";
2022-05-02 02:58:56 +00:00
version = "3.2.0";
src = fetchFromGitHub {
owner = "hjson";
repo = pname;
rev = "v${version}";
2022-05-02 02:58:56 +00:00
sha256 = "sha256-plsiHxjrZXcnaqN8Frs+VuGwV7JOj8UwB0iibp3ApAk=";
};
2022-05-02 02:58:56 +00:00
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
2022-05-02 02:58:56 +00:00
ldflags = [ "-s" "-w" ];
meta = with lib; {
description = "Utility to convert JSON to and from HJSON";
homepage = "https://hjson.github.io/";
maintainers = with maintainers; [ ehmry ];
license = licenses.mit;
mainProgram = "hjson-cli";
};
}