podman: add systemd to rpath

(cherry picked from commit ada45ac3aee664265759611d09443d549250bd70)
This commit is contained in:
Nick Cao 2021-05-26 23:56:20 +08:00 committed by Robert Hensing
parent d33aa3d0d3
commit 0919b5c419
1 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,11 @@ buildGoModule rec {
runHook postInstall runHook postInstall
''; '';
postFixup = lib.optionalString stdenv.isLinux ''
RPATH=$(patchelf --print-rpath $out/bin/podman)
patchelf --set-rpath "${lib.makeLibraryPath [ systemd ]}":$RPATH $out/bin/podman
'';
passthru.tests = { inherit (nixosTests) podman; }; passthru.tests = { inherit (nixosTests) podman; };
meta = with lib; { meta = with lib; {