about summary refs log tree commit diff
path: root/pkgs/tools/networking/dd-agent
diff options
context:
space:
mode:
authorDave Aitken <actionshrimp@users.noreply.github.com>2022-12-07 12:06:54 +0000
committerDave Aitken <dave.aitken@gmail.com>2022-12-09 09:15:58 +0000
commit845e54e94b4bfba4b99ce636f35415e4d5d86d08 (patch)
treeaa1e734516bfe5e3e090a80296332fbd1efe17f0 /pkgs/tools/networking/dd-agent
parent5727fbea4a5beff4bede3f01a03e6087685c6737 (diff)
datadog-agent: add rtloader to LD_LIBRARY_PATH
This fixes the python init error mentioned here:
https://github.com/NixOS/nixpkgs/issues/105221#issuecomment-1251150900

However, there are still issues with the derived python environment - for some
reason datadog_checks.base is not present in the env's site-packages, which all
the other checks depend on, so python loading still isn't working fully (but I
believe this is an improvement over what's there already at least).
Diffstat (limited to 'pkgs/tools/networking/dd-agent')
-rw-r--r--pkgs/tools/networking/dd-agent/datadog-agent.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/tools/networking/dd-agent/datadog-agent.nix b/pkgs/tools/networking/dd-agent/datadog-agent.nix
index f2013c4889ee2..b83083936a312 100644
--- a/pkgs/tools/networking/dd-agent/datadog-agent.nix
+++ b/pkgs/tools/networking/dd-agent/datadog-agent.nix
@@ -100,8 +100,7 @@ in buildGo118Module rec {
 
     wrapProgram "$out/bin/agent" \
       --set PYTHONPATH "$out/${python.sitePackages}"'' + lib.optionalString withSystemd '' \
-      --prefix LD_LIBRARY_PATH : ${lib.getLib systemd}/lib
-  '';
+      --prefix LD_LIBRARY_PATH : '' + lib.makeLibraryPath [ (lib.getLib systemd) rtloader ];
 
   meta = with lib; {
     description = ''