podman: add systemd to rpath

(cherry picked from commit ada45ac3aee664265759611d09443d549250bd70)
This commit is contained in:
Nick Cao
2021-06-02 10:20:10 +02:00
committed by Robert Hensing
parent d33aa3d0d3
commit 0919b5c419
@@ -75,6 +75,11 @@ buildGoModule rec {
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; };
meta = with lib; {