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";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "2.0.5";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pelletier";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-9m0g8hfJ+gazYHq2TzSN/0d2o789QBhbIpGxdXhNBGk=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
vendorSha256 = "sha256-yDPCfJtYty4aaoDrn3UWFcs1jHJHMJqzc5f06AWQmRc=";
|
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";
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|