filebeat6: use lib.getLib systemd instead of systemd.lib
This will pick the `lib` output if it exists, otherwise default to `out`.
This commit is contained in:
parent
661314d27b
commit
8ccbb4747e
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue