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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.2.1";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pelletier";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-DAtp9ovl6cny0rom80aK+bGe9U/p6zmTQo1Z3MscCjg=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-4t/ft3XTfc7yrsFVMSfjdCur8QULho3NI2ym6gqjexI=";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
excludedPackages = [
|
|
|
|
"cmd/gotoml-test-decoder"
|
|
|
|
"cmd/gotoml-test-encoder"
|
|
|
|
"cmd/tomltestgen"
|
|
|
|
];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|