* A package that builds source distributions of Nix. It fetches the

source from Subversion, runs autoreconf and configure, and does a `make 
  dist'.

  The revision number is currently hard-coded into `nix-dist.fix'.

svn path=/nixpkgs/trunk/; revision=302
This commit is contained in:
Eelco Dolstra 2003-08-18 10:08:27 +00:00
parent dd19f0b526
commit 1445fe4a26
2 changed files with 35 additions and 0 deletions

12
pkgs/nix-dist/nix-dist-build.sh Executable file
View File

@ -0,0 +1,12 @@
#! /bin/sh
. $stdenv/setup || exit 1
cp --preserve=all -rv $src nix
cd nix || exit 1
cp -p $bdbSrc externals/db-4.0.14.tar.gz || exit 1
cp -p $atermSrc externals/aterm-2.0.tar.gz || exit 1
autoreconf -i || exit 1
./configure || exit 1
make dist || exit 1
cp nix-0.2pre1.tar.gz $out || exit 1

View File

@ -0,0 +1,23 @@
Package(
[ ("name", "nix-dist")
, ("build", Relative("nix-dist/nix-dist-build.sh"))
, ("src", App(IncludeFix("fetchsvn/fetchsvn.fix"),
[ ("name", "nix")
, ("url", "http://losser.st-lab.cs.uu.nl:12080/repos/trace/nix/trunk")
, ("rev", "300")
]))
, ("bdbSrc", App(IncludeFix("fetchurl/fetchurl.fix"),
[ ("url", "http://www.sleepycat.com/update/snapshot/db-4.0.14.tar.gz")
, ("md5", "12262c64fcd64b772e7cffad8e4d0ebc")
]))
, ("atermSrc", App(IncludeFix("fetchurl/fetchurl.fix"),
[ ("url", "http://www.cwi.nl/projects/MetaEnv/aterm/aterm-2.0.tar.gz")
, ("md5", "853474e4bcf4a85f7d38a0676b36bded")
]))
, ("stdenv", IncludeFix("stdenv/stdenv.fix"))
]
)