podman: replace systemdMinimal with systemd

This commit is contained in:
Pol Dellaiera
2025-12-15 20:42:06 +01:00
parent eb493e4eaf
commit 317a105e14
+4 -3
View File
@@ -12,7 +12,8 @@
libapparmor,
libseccomp,
libselinux,
systemdMinimal,
# TODO: investigate why changing from `systemd` to `systemdMinimal` breaks `podman logs`
systemd,
nixosTests,
python3,
makeBinaryWrapper,
@@ -83,7 +84,7 @@ buildGoModule (finalAttrs: {
libseccomp
libselinux
lvm2
systemdMinimal
systemd
];
env = {
@@ -135,7 +136,7 @@ buildGoModule (finalAttrs: {
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
RPATH=$(patchelf --print-rpath $out/bin/.podman-wrapped)
patchelf --set-rpath "${lib.makeLibraryPath [ systemdMinimal ]}":$RPATH $out/bin/.podman-wrapped
patchelf --set-rpath "${lib.makeLibraryPath [ systemd ]}":$RPATH $out/bin/.podman-wrapped
substituteInPlace "$out/share/systemd/user/podman-user-wait-network-online.service" \
--replace-fail sleep '${coreutils}/bin/sleep' \
--replace-fail /bin/sh '${runtimeShell}'