forked from mirrors/nixpkgs
* `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:
parent
3d459917c2
commit
6c0e7440ad
10
fixdescriptors/aterm-2.0.fix
Normal file
10
fixdescriptors/aterm-2.0.fix
Normal 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")))
|
||||
]
|
||||
)
|
19
register
19
register
|
@ -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
|
Loading…
Reference in a new issue