forked from mirrors/nixpkgs
sile, simavr: fixup packages with RPATH problems
This commit is contained in:
parent
e9aeb55f3b
commit
cbdcc20e77
|
@ -18,6 +18,9 @@ stdenv.mkDerivation rec {
|
|||
buildFlags = "AVR_ROOT=${avrgcclibc}/avr SIMAVR_VERSION=${version}";
|
||||
installFlags = buildFlags + " DESTDIR=$(out)";
|
||||
|
||||
# Hack to avoid TMPDIR in RPATHs.
|
||||
preFixup = ''rm -rf "$(pwd)" && mkdir "$(pwd)" '';
|
||||
|
||||
postFixup = ''
|
||||
target="$out/bin/simavr"
|
||||
patchelf --set-rpath "$(patchelf --print-rpath "$target"):$out/lib" "$target"
|
||||
|
|
|
@ -45,6 +45,9 @@ stdenv.mkDerivation rec {
|
|||
--set LUA_CPATH "${luaCPath};" \
|
||||
'';
|
||||
|
||||
# Hack to avoid TMPDIR in RPATHs.
|
||||
preFixup = ''rm -rf "$(pwd)" && mkdir "$(pwd)" '';
|
||||
|
||||
meta = {
|
||||
description = "A typesetting system";
|
||||
longDescription = ''
|
||||
|
|
Loading…
Reference in a new issue