summary refs log tree commit diff
path: root/pkgs/build-support/build-fhs-userenv
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2018-10-15 02:37:28 +0300
committerNikolay Amiantov <ab@fmap.me>2019-05-25 11:37:01 +0300
commit668f8a12f7dc59109ae9425bed67619c67582131 (patch)
tree18232093de80a8637ea8a558b261ccfb37d5d066 /pkgs/build-support/build-fhs-userenv
parent9da82ca01f80c47758194f07ba7cb58bb283860b (diff)
downloadnixpkgs-668f8a12f7dc59109ae9425bed67619c67582131.tar
nixpkgs-668f8a12f7dc59109ae9425bed67619c67582131.tar.gz
nixpkgs-668f8a12f7dc59109ae9425bed67619c67582131.tar.bz2
nixpkgs-668f8a12f7dc59109ae9425bed67619c67582131.tar.lz
nixpkgs-668f8a12f7dc59109ae9425bed67619c67582131.tar.xz
nixpkgs-668f8a12f7dc59109ae9425bed67619c67582131.tar.zst
nixpkgs-668f8a12f7dc59109ae9425bed67619c67582131.zip
buildFHSUserEnv: extend PATH and LD_LIBRARY_PATH
This allows one to run applications from PATH and override libraries for
applications inside chrootenv. Useful for development environments.
Diffstat (limited to 'pkgs/build-support/build-fhs-userenv')
-rw-r--r--pkgs/build-support/build-fhs-userenv/env.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/build-fhs-userenv/env.nix b/pkgs/build-support/build-fhs-userenv/env.nix
index be83c9da210..295b17eec67 100644
--- a/pkgs/build-support/build-fhs-userenv/env.nix
+++ b/pkgs/build-support/build-fhs-userenv/env.nix
@@ -52,8 +52,8 @@ let
   etcProfile = writeText "profile" ''
     export PS1='${name}-chrootenv:\u@\h:\w\$ '
     export LOCALE_ARCHIVE='/usr/lib/locale/locale-archive'
-    export LD_LIBRARY_PATH='/run/opengl-driver/lib:/run/opengl-driver-32/lib:/usr/lib:/usr/lib32'
-    export PATH='/run/wrappers/bin:/usr/bin:/usr/sbin'
+    export LD_LIBRARY_PATH="/run/opengl-driver/lib:/run/opengl-driver-32/lib:/usr/lib:/usr/lib32:$LD_LIBRARY_PATH"
+    export PATH="/run/wrappers/bin:/usr/bin:/usr/sbin:$PATH"
     export TZDIR='/etc/zoneinfo'
 
     # Force compilers and other tools to look in default search paths