podman: add systemd to LD_LIBRARY_PATH for journald log driver

This commit is contained in:
Nick Cao 2021-05-22 18:20:04 +08:00 committed by zowoq
parent acb51e6ca3
commit 0579444f1d

View File

@ -3,6 +3,7 @@
, fetchFromGitHub
, pkg-config
, installShellFiles
, makeWrapper
, buildGoModule
, gpgme
, lvm2
@ -36,7 +37,7 @@ buildGoModule rec {
outputs = [ "out" "man" ];
nativeBuildInputs = [ pkg-config go-md2man installShellFiles ];
nativeBuildInputs = [ pkg-config go-md2man installShellFiles makeWrapper ];
buildInputs = lib.optionals stdenv.isLinux [
btrfs-progs
@ -69,6 +70,8 @@ buildGoModule rec {
installShellCompletion --zsh completions/zsh/*
MANDIR=$man/share/man make install.man-nobuild
'' + lib.optionalString stdenv.isLinux ''
wrapProgram $out/bin/podman \
--prefix LD_LIBRARY_PATH : "${lib.getLib systemd}/lib"
install -Dm644 contrib/tmpfile/podman.conf -t $out/lib/tmpfiles.d
install -Dm644 contrib/systemd/system/podman.{socket,service} -t $out/lib/systemd/system
'' + ''