* Added a Nix expression for Nix.

svn path=/nixpkgs/trunk/; revision=790
This commit is contained in:
Eelco Dolstra 2004-02-16 15:40:55 +00:00
parent e535bc8ad0
commit d113da8bab
4 changed files with 27 additions and 0 deletions

10
pkgs/misc/nix/builder.sh Executable file
View file

@ -0,0 +1,10 @@
#! /bin/sh -e
. $stdenv/setup
tar xvfj $src
cd nix-*
./configure --prefix=$out \
--with-store-dir=/nix/store --localstatedir=/nix/var
make
make install

12
pkgs/misc/nix/default.nix Normal file
View file

@ -0,0 +1,12 @@
{stdenv, fetchurl}:
derivation {
name = "nix-0.5pre789";
system = stdenv.system;
builder = ./builder.sh;
src = fetchurl {
url = http://catamaran.labs.cs.uu.nl/dist/nix/nix-0.5pre789/nix-0.5pre789.tar.bz2;
md5 = "1c5c1cd6e8bf9b68cc9df3b70017ce15";
};
inherit stdenv;
}

View file

@ -661,4 +661,8 @@
patch = gnupatch;
};
nix = (import ../misc/nix) {
inherit fetchurl stdenv;
};
}

View file

@ -46,5 +46,6 @@ let {
pkgs.hello
pkgs.nxml
pkgs.uml
pkgs.nix
];
}