git.iko.soy/typeable/nixpkgs
on master help sign in
systemd-cryptsetup-generator: fixup linkage

It got broken by 74a64a8a6 #53483. But IMO it's *this* expression that was written in a too fragile way.

commit2c226107cb544c1f9baf08f9cfa149023cda78e4 authorVladimír Čunát <vcunat@gmail.com> dateSat 26 Jan 2019, 14:12 (8 years ago) parent92a44bd
1 file changed+3−2
pkgs/os-specific/linux/systemd/cryptsetup-generator.nix+3−2
pkgs/os-specific/linux/systemd/cryptsetup-generator.nix+3−2
@@ -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 = ''