mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 00:54:46 +00:00
38 lines
928 B
Nix
38 lines
928 B
Nix
{ stdenv, fetchurl, python, sysstat, unzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "3.8.0";
|
|
name = "dd-agent-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/DataDog/dd-agent/archive/${version}.zip";
|
|
sha256 = "1mh22rbja07gc7ydn357hlij0dl2rygkqsya9ckynsvmkkzn2gyx";
|
|
};
|
|
|
|
buildInputs = [ python unzip ];
|
|
propagatedBuildInputs = [ python ];
|
|
|
|
postUnpack = "export sourceRoot=$sourceRoot/packaging";
|
|
|
|
makeFlags = [ "BUILD=$(out)" ];
|
|
|
|
installTargets = [ "install_base" "install_full" ];
|
|
|
|
postInstall = ''
|
|
mv $out/usr/* $out
|
|
rmdir $out/usr
|
|
'';
|
|
|
|
meta = {
|
|
description = "Event collector for the DataDog analysis service";
|
|
|
|
homepage = http://www.datadoghq.com;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.shlevy stdenv.lib.maintainers.iElectric ];
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|