* 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
}
}