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-06-29 18:46:37 +02:00
|
|
|
version = "3.8.0";
|
|
|
|
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";
|
|
|
|
sha256 = "1mh22rbja07gc7ydn357hlij0dl2rygkqsya9ckynsvmkkzn2gyx";
|
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
|
|
|
}
|