summaryrefslogtreecommitdiffstats
path: root/pkgs/misc/logging
diff options
context:
space:
mode:
authorTristan Helmich <tristan.helmich@gmail.com>2017-02-26 21:37:05 +0100
committerRobin Gloster <mail@glob.in>2017-03-20 22:37:17 +0100
commit9fce67264d8709bedb4ca86ba3752ca634933dc7 (patch)
tree604d7a7d823b15dcfbe4f0c5d7904e27d264f252 /pkgs/misc/logging
parent9dfb7e42ad71c4415d3f8a638748eccbfb1f6652 (diff)
metricbeat: init at 5.2.1
Diffstat (limited to 'pkgs/misc/logging')
-rw-r--r--pkgs/misc/logging/metricbeat/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/misc/logging/metricbeat/default.nix b/pkgs/misc/logging/metricbeat/default.nix
new file mode 100644
index 000000000000..c925dee7da97
--- /dev/null
+++ b/pkgs/misc/logging/metricbeat/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+ name = "metricbeat-${version}";
+ version = "5.2.1";
+
+ src = fetchurl {
+ url = "https://artifacts.elastic.co/downloads/beats/metricbeat/${name}-linux-x86_64.tar.gz";
+ sha256 = "0shpyqgrqiiqv9anipqms1xy0wn5n2m11fvicdzr3x1v3jygm1ds";
+ };
+
+ # statically linked binary, no need to build anything
+ dontBuild = true;
+ doCheck = false;
+
+ # need to patch interpreter to be able to run on NixOS
+ patchPhase = ''
+ patchelf --interpreter $(cat $NIX_CC/nix-support/dynamic-linker) metricbeat
+ '';
+
+ installPhase = ''
+ mkdir -p $out/bin
+ cp metricbeat $out/bin/
+ '';
+
+ meta = {
+ description = "Lightweight shipper for metrics";
+ homepage = https://www.elastic.co/products/beats;
+ license = stdenv.lib.licenses.asl20;
+ maintainers = [ stdenv.lib.maintainers.fadenb ];
+ platforms = [ "x86_64-linux" ];
+ };
+}