mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
33 lines
825 B
Nix
33 lines
825 B
Nix
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "telegraf";
|
|
version = "1.10.2";
|
|
|
|
goPackagePath = "github.com/influxdata/telegraf";
|
|
|
|
excludedPackages = "test";
|
|
|
|
subPackages = [ "cmd/telegraf" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "influxdata";
|
|
repo = "telegraf";
|
|
rev = "${version}";
|
|
sha256 = "0g27yczb49xf8nbhkzx7lv8378613afq9qx1gr5yhlpfrl4sgb69";
|
|
};
|
|
|
|
buildFlagsArray = [ ''-ldflags=
|
|
-X main.version=${version}
|
|
'' ];
|
|
|
|
goDeps = ./. + "/deps-${version}.nix";
|
|
|
|
meta = with lib; {
|
|
description = "The plugin-driven server agent for collecting & reporting metrics.";
|
|
license = licenses.mit;
|
|
homepage = https://www.influxdata.com/time-series-platform/telegraf/;
|
|
maintainers = with maintainers; [ mic92 roblabla ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|