* More prototyping.

svn path=/nixpkgs/trunk/; revision=449
This commit is contained in:
Eelco Dolstra 2003-10-31 17:12:09 +00:00
parent 33f773c97a
commit 668eaa8960
5 changed files with 23 additions and 3 deletions

4
pkgs-ng/fetchurl/builder.sh Executable file
View file

@ -0,0 +1,4 @@
#! /bin/sh
echo FOO
exit 1

View file

@ -0,0 +1,8 @@
{stdenv}: {url, md5}: derivation
{ name = "fetchurl"
, system = stdenv.system
, builder = ./builder.sh
, stdenv = stdenv
, url = url
, md5 = md5
}

4
pkgs-ng/stdenv/builder.sh Executable file
View file

@ -0,0 +1,4 @@
#! /bin/sh
echo BAR
exit 1

View file

@ -0,0 +1,5 @@
{system}: derivation
{ name = "stdenv"
, system = system
, builder = ./builder.sh
}

View file

@ -4,12 +4,11 @@
}
, fetchurl = (import ../fetchurl)
{ system = system
{ stdenv = stdenv
}
, aterm = (import ../aterm)
{ system = system
, fetchurl = fetchurl
{ fetchurl = fetchurl
, stdenv = stdenv
}
}