3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/dd-agent/default.nix
2014-05-08 15:30:17 +02:00

41 lines
1.2 KiB
Nix

{ stdenv, fetchurl, python, pythonPackages, sysstat, unzip, tornado
, makeWrapper }:
stdenv.mkDerivation rec {
version = "4.2.1";
name = "dd-agent-${version}";
src = fetchurl {
url = "https://github.com/DataDog/dd-agent/archive/${version}.zip";
sha256 = "0s1lg7rqx86z0y111105gwkknzplq149cxd7v3yg30l22wn68dmv";
};
buildInputs = [ python unzip makeWrapper pythonPackages.psycopg2 ];
propagatedBuildInputs = [ python tornado ];
postUnpack = "export sourceRoot=$sourceRoot/packaging";
makeFlags = [ "BUILD=$(out)" ];
installTargets = [ "install_base" "install_full" ];
postInstall = ''
mv $out/usr/* $out
rmdir $out/usr
wrapProgram $out/bin/dd-forwarder \
--prefix PYTHONPATH : $PYTHONPATH
wrapProgram $out/bin/dd-agent \
--prefix PYTHONPATH : $PYTHONPATH
wrapProgram $out/bin/dogstatsd \
--prefix PYTHONPATH : $PYTHONPATH
'';
meta = {
description = "Event collector for the DataDog analysis service";
homepage = http://www.datadoghq.com;
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.all;
maintainers = with stdenv.lib.maintainers; [ thoughtpolice iElectric ];
};
}