mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
27 lines
650 B
Nix
27 lines
650 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-toml";
|
|
version = "2.0.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pelletier";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-zix04tIP9nhvYx8N7uk2cUWjSpMjb0XiPDK3km82XzQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-XOcCsb3zUChiYLTfOCbRQF71E2khzSt/ApFI8NAS13U=";
|
|
|
|
excludedPackages = [ "cmd/gotoml-test-decoder" "cmd/tomltestgen" ];
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
meta = with lib; {
|
|
description = "Go library for the TOML language";
|
|
homepage = "https://github.com/pelletier/go-toml";
|
|
maintainers = [ maintainers.marsam ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|