Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / go-toml / default.nix
blob0b21b92da8dc76c03ef7c6548a06c73d510a4fd4
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "go-toml";
5   version = "2.1.0";
7   src = fetchFromGitHub {
8     owner = "pelletier";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-BEkshlB1Zze4sVo5YDwpj6ENHFLHL4IFmOIYgrWz+gQ=";
12   };
14   vendorHash = "sha256-XOcCsb3zUChiYLTfOCbRQF71E2khzSt/ApFI8NAS13U=";
16   excludedPackages = [ "cmd/gotoml-test-decoder" "cmd/tomltestgen" ];
18   ldflags = [ "-s" "-w" ];
20   meta = with lib; {
21     description = "Go library for the TOML language";
22     homepage = "https://github.com/pelletier/go-toml";
23     changelog = "https://github.com/pelletier/go-toml/releases/tag/v${version}";
24     maintainers = [ maintainers.marsam ];
25     license = licenses.mit;
26   };