* `Fix' is a high-level descriptor instantiator for Nix. It replaces

nix-instantiate.

svn path=/nix/trunk/test/; revision=35
This commit is contained in:
Eelco Dolstra 2003-04-08 12:00:51 +00:00
parent 3d459917c2
commit 6c0e7440ad
2 changed files with 10 additions and 19 deletions

View file

@ -0,0 +1,10 @@
Descr(
[ Bind("pkgId", Str("aterm-2.0"))
, Bind("releaseId", Str("1"))
, Bind("createGCC", Bool(True))
, Bind("src", File(Url("http://www.cwi.nl/projects/MetaEnv/aterm/aterm-2.0.tar.gz")))
, Bind("build", File(Local("../build/aterm-build.sh")))
]
)

View file

@ -1,19 +0,0 @@
#! /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