nixpkgs/pkgs/tools/networking/dd-agent/default.nix

39 lines
1014 B
Nix
Raw Normal View History

2014-04-08 07:27:09 +00:00
{ stdenv, fetchurl, python, sysstat, unzip, tornado, makeWrapper }:
2013-01-08 17:32:47 +00:00
stdenv.mkDerivation rec {
2014-04-08 07:27:09 +00:00
version = "4.2.0";
2013-06-29 16:46:37 +00:00
name = "dd-agent-${version}";
2013-01-08 17:32:47 +00:00
2013-06-29 16:46:37 +00:00
src = fetchurl {
url = "https://github.com/DataDog/dd-agent/archive/${version}.zip";
2014-04-08 07:27:09 +00:00
sha256 = "0lp3h3flb50i64kgkj9kyyf3p1xm0nipxi22w5pmhb71l678d216";
2013-01-08 17:32:47 +00:00
};
2014-04-08 07:27:09 +00:00
buildInputs = [ python unzip makeWrapper ];
propagatedBuildInputs = [ python tornado ];
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
2014-04-08 07:27:09 +00:00
wrapProgram $out/bin/dd-forwarder --prefix PYTHONPATH : $PYTHONPATH
2013-01-08 17:35:41 +00:00
'';
2013-01-08 17:55:55 +00:00
meta = {
description = "Event collector for the DataDog analysis service";
homepage = http://www.datadoghq.com;
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
}