mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
23 lines
338 B
Bash
Executable file
23 lines
338 B
Bash
Executable file
#! /bin/sh
|
|
|
|
root=/home/eelco/Dev/nix/test
|
|
cd $root
|
|
|
|
mkdir -p db
|
|
mkdir -p pkg
|
|
mkdir -p descr
|
|
mkdir -p netcache
|
|
|
|
nix init
|
|
|
|
if ! nix-instantiate descr netcache tmpl/*.nix; then
|
|
exit 1;
|
|
fi
|
|
|
|
for i in netcache/*; do nix regfile $i; done
|
|
for i in build/*; do nix regfile $i; done
|
|
for i in descr/*; do
|
|
md5sum $i
|
|
nix regfile $i
|
|
done
|
|
|