libsmbios: future proof RPATH fix
This commit is contained in:
parent
f1d5f9766e
commit
91e2f185c0
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user