3
0
Fork 0
forked from mirrors/nixpkgs

* Better installation: make directories, create database.

* Fixed the register script.

svn path=/nix/trunk/test/; revision=34
This commit is contained in:
Eelco Dolstra 2003-04-06 22:19:26 +00:00
parent 7d02aa1fd4
commit 3d459917c2

View file

@ -1,19 +1,19 @@
#! /bin/sh
mkdir -p $NIX/db
mkdir -p $NIX/pkg
mkdir -p $NIX/descr
mkdir -p $NIX/netcache
if test -z "$NIX"; then NIX=/nix; fi
nix init
echo target $NIX
if ! nix-instantiate $NIX/descr $NIX/netcache tmpl/*.nix; then
if ! nix-instantiate $NIX/var/nix/descriptors $NIX/var/nix/sources tmpl/*.nix; then
exit 1;
fi
for i in $NIX/netcache/*; do nix regfile $i; done
for i in build/*; do nix regfile $i; done
for i in $NIX/descr/*; do
rm -f build/*~
cp -p build/* $NIX/var/nix/sources
for i in $NIX/var/nix/sources/*; do nix regfile $i; done
for i in $NIX/var/nix/descriptors/*; do
md5sum $i
nix regfile $i
done