nixpkgs/pkgs/development/tools/hjson-go/default.nix
2022-09-07 22:36:31 -05:00

26 lines
562 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "hjson-go";
version = "4.1.0";
src = fetchFromGitHub {
owner = "hjson";
repo = pname;
rev = "v${version}";
sha256 = "sha256-L438L50LgF/YUzWRyTcZz6JrBlJQ1/XMYZUUb0avb0w=";
};
vendorSha256 = null;
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";
};
}