2014-04-08 09:27:09 +02:00
|
|
|
{ stdenv, fetchurl, python, sysstat, unzip, tornado, makeWrapper }:
|
2013-01-08 18:32:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-04-22 15:47:06 +02:00
|
|
|
version = "4.2.1";
|
2013-06-29 18:46:37 +02:00
|
|
|
name = "dd-agent-${version}";
|
2013-01-08 18:32:47 +01:00
|
|
|
|
2013-06-29 18:46:37 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/DataDog/dd-agent/archive/${version}.zip";
|
2014-04-22 15:47:06 +02:00
|
|
|
sha256 = "0s1lg7rqx86z0y111105gwkknzplq149cxd7v3yg30l22wn68dmv";
|
2013-01-08 18:32:47 +01:00
|
|
|
};
|
|
|
|
|
2014-04-08 09:27:09 +02:00
|
|
|
buildInputs = [ python unzip makeWrapper ];
|
|
|
|
propagatedBuildInputs = [ python tornado ];
|
2013-01-08 18:42:11 +01:00
|
|
|
|
2013-01-08 18:32:47 +01:00
|
|
|
postUnpack = "export sourceRoot=$sourceRoot/packaging";
|
|
|
|
|
|
|
|
makeFlags = [ "BUILD=$(out)" ];
|
|
|
|
|
|
|
|
installTargets = [ "install_base" "install_full" ];
|
2013-01-08 18:35:41 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/usr/* $out
|
|
|
|
rmdir $out/usr
|
2014-04-08 09:27:09 +02:00
|
|
|
wrapProgram $out/bin/dd-forwarder --prefix PYTHONPATH : $PYTHONPATH
|
2013-01-08 18:35:41 +01:00
|
|
|
'';
|
2013-01-08 18:55:55 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Event collector for the DataDog analysis service";
|
|
|
|
|
|
|
|
homepage = http://www.datadoghq.com;
|
|
|
|
|
2014-01-22 04:34:41 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.iElectric ];
|
2013-01-08 18:55:55 +01:00
|
|
|
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
2013-01-08 18:32:47 +01:00
|
|
|
}
|