1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

efl: set $HOME for reverse dependencies

This commit is contained in:
Vladimír Čunát 2017-04-30 11:35:59 +02:00
parent aa044dd105
commit 18a7f7d4a5
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -3,7 +3,7 @@
, libsndfile, xorg, libdrm, libxkbcommon, udev, utillinux, dbus, bullet, luajit
, python27Packages, openjpeg, doxygen, expat, harfbuzz, jbig2dec, librsvg
, dbus_libs, alsaLib, poppler, ghostscript, libraw, libspectre, xineLib, libwebp
, curl, libinput, systemd
, curl, libinput, systemd, writeText
}:
stdenv.mkDerivation rec {
@ -51,9 +51,14 @@ stdenv.mkDerivation rec {
patches = [ ./efl-elua.patch ];
# bin/edje_cc creates $HOME/.run, which would break build of reverse dependencies.
setupHook = writeText "setupHook.sh" ''
export HOME="$TEMPDIR"
'';
preConfigure = ''
export LD_LIBRARY_PATH="$(pwd)/src/lib/eina/.libs:$LD_LIBRARY_PATH"
export HOME="$TEMPDIR"
source "$setupHook"
'';
postInstall = ''