diff options
author | Florian Klink <flokli@flokli.de> | 2020-08-12 20:18:40 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2020-08-13 20:51:41 +0200 |
commit | 8ccbb4747e9ea0e8c05730d512f1ba36a6cd427a (patch) | |
tree | ee1ab00995cf2d50c7a39c477f8ff3d1adeb0efb /pkgs/misc | |
parent | 661314d27be97446ad5e90ce3c9734890039420c (diff) |
filebeat6: use lib.getLib systemd instead of systemd.lib
This will pick the `lib` output if it exists, otherwise default to `out`.
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/logging/beats/6.x.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/misc/logging/beats/6.x.nix b/pkgs/misc/logging/beats/6.x.nix index c3bca18a9a44..2d01ea622612 100644 --- a/pkgs/misc/logging/beats/6.x.nix +++ b/pkgs/misc/logging/beats/6.x.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, elk6Version, buildGoPackage, libpcap, systemd }: +{ stdenv, lib, fetchFromGitHub, elk6Version, buildGoPackage, libpcap, systemd }: let beat = package : extraArgs : buildGoPackage (rec { name = "${package}-${version}"; @@ -46,7 +46,7 @@ in { journal entries from Linuxes with systemd. ''; buildInputs = [ systemd.dev ]; - postFixup = let libPath = stdenv.lib.makeLibraryPath [ systemd.lib ]; in '' + postFixup = let libPath = stdenv.lib.makeLibraryPath [ (lib.getLib systemd) ]; in '' patchelf --set-rpath ${libPath} "$out/bin/journalbeat" ''; }; |