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

if test -z "$NIX"; then NIX=/nix; fi

echo target $NIX

if ! nix-instantiate $NIX/var/nix/descriptors $NIX/var/nix/sources tmpl/*.nix; then
    exit 1;
fi

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