podman: add systemd to LD_LIBRARY_PATH for journald log driver

launchpad/nixpkgs/master
Nick Cao 3 years ago committed by zowoq
parent acb51e6ca3
commit 0579444f1d
  1. 5
      pkgs/applications/virtualization/podman/default.nix

@ -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
'' + ''

Loading…
Cancel
Save