Fix virtualbox image building with new nix

This commit is contained in:
Shea Levy 2014-07-15 19:17:06 -04:00
parent 327c2061d1
commit 654c88cc6b

View File

@ -51,6 +51,9 @@ with lib;
set -f
cp -prd $storePaths /mnt/nix/store/
mkdir -p /mnt/etc/nix
echo 'build-users-group = ' > /mnt/etc/nix/nix.conf
# Register the paths in the Nix database.
printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \
chroot /mnt ${config.nix.package}/bin/nix-store --load-db