3
0
Fork 0
forked from mirrors/nixpkgs

add an expression for the latest and greatest version of Nix

svn path=/nixpkgs/trunk/; revision=5232
This commit is contained in:
Armijn Hemel 2006-04-28 12:34:54 +00:00
parent 03b38e9253
commit b44c8726c7
3 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,8 @@
source $stdenv/setup
configureFlags="\
--with-store-dir=$storeDir --localstatedir=$stateDir \
--with-aterm=$aterm --with-bdb=$bdb \
--disable-init-state"
genericBuild

View file

@ -0,0 +1,20 @@
{ stdenv, fetchurl, aterm, bdb, perl, curl
, storeDir ? "/nix/store"
, stateDir ? "/nix/var"
}:
assert aterm != null && bdb != null && perl != null;
# assert bdb.version >= 4.2
# assert aterm.version >= 2.0
stdenv.mkDerivation {
name = "nix-0.10pre5214";
builder = ./builder.sh;
src = fetchurl {
url = http://nix.cs.uu.nl/dist/nix/nix-0.10pre5214/nix-0.10pre5214.tar.bz2;
md5 = "a6e9e551a5d45d5850e4b94f8c1c8f0a";
};
buildInputs = [aterm bdb perl curl];
#patches = [./nix-profile-0.9.2.patch];
inherit storeDir stateDir aterm bdb;
}

View file

@ -0,0 +1,12 @@
diff -ruN nix-0.9.2/scripts/nix-profile.sh.in nix-0.9.2.new/scripts/nix-profile.sh.in
--- nix-0.9.2/scripts/nix-profile.sh.in 2005-09-21 20:29:43.000000000 +0200
+++ nix-0.9.2.new/scripts/nix-profile.sh.in 2005-10-11 18:44:57.000000000 +0200
@@ -4,7 +4,7 @@
if ! test -L "$NIX_LINK"; then
echo "creating $NIX_LINK"
_NIX_DEF_LINK=@localstatedir@/nix/profiles/default
- ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
+ @coreutils@/ln -s "$_NIX_DEF_LINK" "$NIX_LINK"
fi
export PATH=$NIX_LINK/bin:@prefix@/bin:$PATH