mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
* Added a Nix expression for Nix.
svn path=/nixpkgs/trunk/; revision=790
This commit is contained in:
parent
e535bc8ad0
commit
d113da8bab
10
pkgs/misc/nix/builder.sh
Executable file
10
pkgs/misc/nix/builder.sh
Executable 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
12
pkgs/misc/nix/default.nix
Normal 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;
|
||||
}
|
@ -661,4 +661,8 @@
|
||||
patch = gnupatch;
|
||||
};
|
||||
|
||||
nix = (import ../misc/nix) {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -46,5 +46,6 @@ let {
|
||||
pkgs.hello
|
||||
pkgs.nxml
|
||||
pkgs.uml
|
||||
pkgs.nix
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user