about summary refs log tree commit diff
path: root/test/register
blob: e03296495a92f97e6a66409b3b449dcaa5183114 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

mkdir -p $NIX/db
mkdir -p $NIX/pkg
mkdir -p $NIX/descr
mkdir -p $NIX/netcache

nix init

if ! nix-instantiate $NIX/descr $NIX/netcache 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 
    md5sum $i
    nix regfile $i
done