2022-04-27 09:35:20 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
buildGoModule rec {
|
2020-06-18 07:06:33 +00:00
|
|
|
pname = "go-toml";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.1.0";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pelletier";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-BEkshlB1Zze4sVo5YDwpj6ENHFLHL4IFmOIYgrWz+gQ=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
vendorHash = "sha256-XOcCsb3zUChiYLTfOCbRQF71E2khzSt/ApFI8NAS13U=";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
excludedPackages = [ "cmd/gotoml-test-decoder" "cmd/tomltestgen" ];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Go library for the TOML language";
|
|
|
|
homepage = "https://github.com/pelletier/go-toml";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/pelletier/go-toml/releases/tag/v${version}";
|
2020-06-18 07:06:33 +00:00
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|