libsmbios: future proof RPATH fix

This commit is contained in:
Artturin 2023-07-31 07:31:02 +03:00
parent f1d5f9766e
commit 91e2f185c0

View File

@ -35,9 +35,9 @@ stdenv.mkDerivation rec {
cp -a out/public-include/smbios_c $out/include/
'';
# Avoid TMPDIR in RPATH
# remove forbidden reference to $TMPDIR
preFixup = ''
patchelf --set-rpath $out/lib:${stdenv.cc.libc}/lib "$out/sbin/smbios-sys-info-lite"
patchelf --shrink-rpath --allowed-rpath-prefixes "/nix/store" "$out/sbin/smbios-sys-info-lite"
'';
meta = with lib; {