From 42c9c6df73a1813fd485a5ec731b621ed8371989 Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Fri, 10 May 2019 15:36:53 +0200 Subject: [PATCH] journalbeat7: fix binary by setting RPATH to systemd using patchelf --- pkgs/misc/logging/beats/7.x.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/misc/logging/beats/7.x.nix b/pkgs/misc/logging/beats/7.x.nix index 629f4128acb..12e08dfeec6 100644 --- a/pkgs/misc/logging/beats/7.x.nix +++ b/pkgs/misc/logging/beats/7.x.nix @@ -45,5 +45,8 @@ in { journal entries from Linuxes with systemd. ''; buildInputs = [ systemd.dev ]; + postFixup = let libPath = stdenv.lib.makeLibraryPath [ systemd.lib ]; in '' + patchelf --set-rpath ${libPath} "$bin/bin/journalbeat" + ''; }; }