2022-05-02 02:20:03 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-06-06 09:20:00 +00:00
|
|
|
|
2022-05-02 02:20:03 +00:00
|
|
|
buildGoModule rec {
|
2020-06-06 09:20:00 +00:00
|
|
|
pname = "go-toml";
|
2022-11-19 02:12:00 +00:00
|
|
|
version = "2.0.6";
|
2020-06-06 09:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pelletier";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-19 02:12:00 +00:00
|
|
|
sha256 = "sha256-RXKJJseRrwSTReMAkFjShKvCWGMowruYwsCovHwq4ZQ=";
|
2020-06-06 09:20:00 +00:00
|
|
|
};
|
|
|
|
|
2022-11-19 02:12:00 +00:00
|
|
|
vendorSha256 = "sha256-MMCyFKqsL9aSQqK9VtPzUbgfLTFpzD5g8QYx8qIwktg=";
|
2020-06-06 09:20:00 +00:00
|
|
|
|
2022-05-02 02:20:03 +00:00
|
|
|
excludedPackages = [ "cmd/gotoml-test-decoder" "cmd/tomltestgen" ];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2020-06-06 09:20:00 +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;
|
|
|
|
};
|
|
|
|
}
|