2013-06-29 17:46:37 +01:00
|
|
|
{ stdenv, fetchurl, python, sysstat, unzip }:
|
2013-01-08 17:32:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-23 14:49:54 +00:00
|
|
|
version = "4.0.1";
|
2013-06-29 17:46:37 +01:00
|
|
|
name = "dd-agent-${version}";
|
2013-01-08 17:32:47 +00:00
|
|
|
|
2013-06-29 17:46:37 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/DataDog/dd-agent/archive/${version}.zip";
|
2013-12-23 14:49:54 +00:00
|
|
|
sha256 = "0gybdbjkj7qwnzic03xkypagb30zhm22gp3nkwrdhi8fdmwz3nm1";
|
2013-01-08 17:32:47 +00:00
|
|
|
};
|
|
|
|
|
2013-06-29 17:46:37 +01:00
|
|
|
buildInputs = [ python unzip ];
|
2013-07-08 12:58:31 +01:00
|
|
|
propagatedBuildInputs = [ python ];
|
2013-01-08 17:42:11 +00:00
|
|
|
|
2013-01-08 17:32:47 +00:00
|
|
|
postUnpack = "export sourceRoot=$sourceRoot/packaging";
|
|
|
|
|
|
|
|
makeFlags = [ "BUILD=$(out)" ];
|
|
|
|
|
|
|
|
installTargets = [ "install_base" "install_full" ];
|
2013-01-08 17:35:41 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/usr/* $out
|
|
|
|
rmdir $out/usr
|
|
|
|
'';
|
2013-01-08 17:55:55 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Event collector for the DataDog analysis service";
|
|
|
|
|
|
|
|
homepage = http://www.datadoghq.com;
|
|
|
|
|
2014-01-22 03:34:41 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.iElectric ];
|
2013-01-08 17:55:55 +00:00
|
|
|
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
2013-01-08 17:32:47 +00:00
|
|
|
}
|