podman: add systemd to rpath

This commit is contained in:
Nick Cao 2021-05-26 23:56:20 +08:00 committed by zowoq
parent e1d59ae8d4
commit ada45ac3ae

View File

@ -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; {