3
0
Fork 0
forked from mirrors/nixpkgs

sile, simavr: fixup packages with RPATH problems

This commit is contained in:
Vladimír Čunát 2017-05-18 11:39:00 +02:00
parent e9aeb55f3b
commit cbdcc20e77
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
2 changed files with 6 additions and 0 deletions

View file

@ -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"

View file

@ -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 = ''