{ lib, buildGoPackage, fetchFromGitHub }: buildGoPackage rec { name = "telegraf-${version}"; version = "1.1.1"; goPackagePath = "github.com/influxdata/telegraf"; excludedPackages = "test"; src = fetchFromGitHub { owner = "influxdata"; repo = "telegraf"; rev = "${version}"; sha256 = "02sldgbsxifd7s3awjj0a4wf7rrcz2xin02b6ygyqxyhj1kqj8i6"; }; goDeps = ./. + builtins.toPath "/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.linux; }; }