2013-06-29 18:46:37 +02:00
|
|
|
{ stdenv, fetchurl, python, sysstat, unzip }:
|
2013-01-08 18:32:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-23 15:49:54 +01:00
|
|
|
version = "4.0.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";
|
2013-12-23 15:49:54 +01:00
|
|
|
sha256 = "0gybdbjkj7qwnzic03xkypagb30zhm22gp3nkwrdhi8fdmwz3nm1";
|
2013-01-08 18:32:47 +01:00
|
|
|
};
|
|
|
|
|
2013-06-29 18:46:37 +02:00
|
|
|
buildInputs = [ python unzip ];
|
2013-07-08 13:58:31 +02:00
|
|
|
propagatedBuildInputs = [ python ];
|
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
|
|
|
|
'';
|
2013-01-08 18:55:55 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Event collector for the DataDog analysis service";
|
|
|
|
|
|
|
|
homepage = http://www.datadoghq.com;
|
|
|
|
|
2013-07-08 13:58:31 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.shlevy 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
|
|
|
}
|