loki: 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
05a61fc30a
commit
68debbe0cb
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, buildGoPackage, fetchFromGitHub, makeWrapper, systemd }:
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub, makeWrapper, systemd }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
version = "1.5.0";
|
version = "1.5.0";
|
||||||
|
@ -25,7 +25,7 @@ buildGoPackage rec {
|
||||||
|
|
||||||
preFixup = stdenv.lib.optionalString stdenv.isLinux ''
|
preFixup = stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
wrapProgram $out/bin/promtail \
|
wrapProgram $out/bin/promtail \
|
||||||
--prefix LD_LIBRARY_PATH : "${systemd.lib}/lib"
|
--prefix LD_LIBRARY_PATH : "${lib.getLib systemd}/lib"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in New Issue