diff options
Diffstat (limited to 'pkgs/build-support/build-fhs-chrootenv/env.nix')
-rw-r--r-- | pkgs/build-support/build-fhs-chrootenv/env.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/build-support/build-fhs-chrootenv/env.nix b/pkgs/build-support/build-fhs-chrootenv/env.nix index a8293ea803cc6..634ee0b069271 100644 --- a/pkgs/build-support/build-fhs-chrootenv/env.nix +++ b/pkgs/build-support/build-fhs-chrootenv/env.nix @@ -157,11 +157,19 @@ let setupLibDirs = if isTargetBuild then setupLibDirs_target else setupLibDirs_multi; + setupIncludeDir = '' + if [ -x "${staticUsrProfileTarget}/include" ] + then + ln -s "${staticUsrProfileTarget}/include" + fi + ''; + # the target profile is the actual profile that will be used for the chroot setupTargetProfile = '' mkdir -m0755 usr cd usr ${setupLibDirs} + ${setupIncludeDir} for i in bin sbin share include; do cp -r "${staticUsrProfileTarget}/$i" $i done |