1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 18:31:49 +02:00

Add option ‘build-extra-chroot-dirs’

This is useful for extending (rather than overriding) the default set
of chroot paths.
This commit is contained in:
Eelco Dolstra 2014-08-04 18:00:00 +02:00
parent 4d73e2e893
commit d5a076c36f
5 changed files with 10 additions and 14 deletions

View file

@ -98,7 +98,7 @@ let
preHook = lib.optionalString stdenv.isLinux (
let sh = stdenv.shell; in
''
NIX_CFLAGS_COMPILE+=" -DDEFAULT_CHROOT_DIRS=\"/bin/sh=${sh}:$(tr '\n' ':' < ${writeReferencesToFile sh})\""
export DEFAULT_CHROOT_DIRS="/bin/sh=${sh} $(tr '\n' ' ' < ${writeReferencesToFile sh})"
'');
enableParallelBuilding = true;