@@ -14,12 +14,13 @@ systemd.overrideAttrs (p: {
1414 # As ninja install is not used here, the rpath needs to be manually fixed.
1515 # Otherwise the resulting binary doesn't properly link against systemd-shared.so
1616 postFixup = ''
17− sharedLib=libsystemd-shared-${p.version}.so
1817 for prog in `find $out -type f -executable`; do
19− (patchelf --print-needed $prog | grep $sharedLib > /dev/null) && (
18+ (patchelf --print-needed $prog | grep 'libsystemd-shared-.*\.so' > /dev/null) && (
2019 patchelf --set-rpath `patchelf --print-rpath $prog`:"$out/lib/systemd" $prog
2120 ) || true
2221 done
22+ # test it's OK
23+ "$out"/lib/systemd/systemd-cryptsetup
2324 '';
2425
2526 installPhase = ''