* Nix: no longer need a builder, use an external bzip2, removed
nix-unstable. svn path=/nixpkgs/trunk/; revision=6702
This commit is contained in:
parent
64bb1e38df
commit
7d16a56b6f
@ -1,8 +0,0 @@
|
|||||||
source $stdenv/setup
|
|
||||||
|
|
||||||
configureFlags="\
|
|
||||||
--with-store-dir=$storeDir --localstatedir=$stateDir \
|
|
||||||
--with-aterm=$aterm --with-bdb=$bdb \
|
|
||||||
--disable-init-state"
|
|
||||||
|
|
||||||
genericBuild
|
|
@ -1,23 +0,0 @@
|
|||||||
{ 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.10pre6619";
|
|
||||||
builder = ./builder.sh;
|
|
||||||
src = fetchurl {
|
|
||||||
url = http://nix.cs.uu.nl/dist/nix/nix-0.10pre6619/nix-0.10pre6619.tar.bz2;
|
|
||||||
md5 = "551a2ab48b87c0e7d95adc69a8f57e4e";
|
|
||||||
};
|
|
||||||
buildInputs = [aterm bdb perl curl];
|
|
||||||
inherit storeDir stateDir aterm bdb;
|
|
||||||
|
|
||||||
# uncomment if you want to be able to use nix-prefetch-url when NIX_ROOT
|
|
||||||
# is set. Not needed to build or install NixOS.
|
|
||||||
#patches = [./nix-0.10pre5679.patch];
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
diff -ruN nix-0.10pre5679/scripts/nix-prefetch-url.in nix-0.10pre5679.new/scripts/nix-prefetch-url.in
|
|
||||||
--- nix-0.10pre5679/scripts/nix-prefetch-url.in 2006-07-11 13:24:20.000000000 +0200
|
|
||||||
+++ nix-0.10pre5679.new/scripts/nix-prefetch-url.in 2006-08-01 11:54:02.000000000 +0200
|
|
||||||
@@ -39,10 +39,10 @@
|
|
||||||
|
|
||||||
tmpPath=/tmp/nix-prefetch-url-$$ # !!! security?
|
|
||||||
tmpFile=$tmpPath/$name
|
|
||||||
- mkdir $tmpPath
|
|
||||||
+ mkdir -p $NIX_ROOT/$tmpPath
|
|
||||||
|
|
||||||
# Perform the download.
|
|
||||||
- @curl@ --fail --location --max-redirs 20 "$url" > $tmpFile
|
|
||||||
+ @curl@ --fail --location --max-redirs 20 "$url" > $NIX_ROOT/$tmpFile
|
|
||||||
|
|
||||||
# Compute the hash.
|
|
||||||
hash=$(@bindir@/nix-hash --type "$hashType" $hashFormat --flat $tmpFile)
|
|
||||||
@@ -51,7 +51,7 @@
|
|
||||||
# Add the downloaded file to the Nix store.
|
|
||||||
finalPath=$(@bindir@/nix-store --add-fixed "$hashType" $tmpFile)
|
|
||||||
|
|
||||||
- if test -n "$tmpPath"; then rm -rf $tmpPath || true; fi
|
|
||||||
+ if test -n "$NIX_ROOT/$tmpPath"; then rm -rf $NIX_ROOT/$tmpPath || true; fi
|
|
||||||
|
|
||||||
if test -n "$expHash" -a "$expHash" != "$hash"; then
|
|
||||||
echo "hash mismatch for URL \`$url'"
|
|
@ -1,8 +0,0 @@
|
|||||||
source $stdenv/setup
|
|
||||||
|
|
||||||
configureFlags="\
|
|
||||||
--with-store-dir=$storeDir --localstatedir=$stateDir \
|
|
||||||
--with-aterm=$aterm --with-bdb=$bdb \
|
|
||||||
--disable-init-state"
|
|
||||||
|
|
||||||
genericBuild
|
|
@ -1,17 +1,20 @@
|
|||||||
{ stdenv, fetchurl, aterm, bdb, perl, curl
|
{ stdenv, fetchurl, aterm, db4, perl, curl, bzip2
|
||||||
, storeDir ? "/nix/store"
|
, storeDir ? "/nix/store"
|
||||||
, stateDir ? "/nix/var"
|
, stateDir ? "/nix/var"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert aterm != null && bdb != null && perl != null;
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "nix-0.10.1";
|
name = "nix-0.10.1";
|
||||||
builder = ./builder.sh;
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://nix.cs.uu.nl/dist/nix/nix-0.10.1/nix-0.10.1.tar.bz2;
|
url = http://nix.cs.uu.nl/dist/nix/nix-0.10.1/nix-0.10.1.tar.bz2;
|
||||||
md5 = "22dc0c024ca5bb477da0b38ba834dbf2";
|
md5 = "22dc0c024ca5bb477da0b38ba834dbf2";
|
||||||
};
|
};
|
||||||
buildInputs = [aterm bdb perl curl];
|
|
||||||
inherit storeDir stateDir aterm bdb;
|
buildInputs = [perl curl];
|
||||||
|
|
||||||
|
configureFlags = "
|
||||||
|
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
||||||
|
--with-aterm=${aterm} --with-bdb=${db4} --with-bzip2=${bzip2}
|
||||||
|
--disable-init-state";
|
||||||
}
|
}
|
||||||
|
@ -2784,25 +2784,16 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nix = (import ../misc/nix) {
|
nix = (import ../misc/nix) {
|
||||||
inherit fetchurl aterm perl curl;
|
inherit fetchurl stdenv aterm db4 perl curl bzip2;
|
||||||
bdb = db4;
|
|
||||||
stdenv = overrideGCC stdenv gcc34;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixUnstable = nix;
|
||||||
|
|
||||||
nixStatic = (import ../misc/nix-static) {
|
nixStatic = (import ../misc/nix-static) {
|
||||||
inherit fetchurl stdenv aterm perl curl autoconf automake libtool;
|
inherit fetchurl stdenv aterm perl curl autoconf automake libtool;
|
||||||
bdb = db4;
|
bdb = db4;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixUnstable = nix;
|
|
||||||
|
|
||||||
/*
|
|
||||||
nixUnstable = (import ../misc/nix-unstable) {
|
|
||||||
inherit fetchurl stdenv aterm perl curl;
|
|
||||||
bdb = db4;
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
polytable = (import ../misc/tex/polytable) {
|
polytable = (import ../misc/tex/polytable) {
|
||||||
inherit fetchurl stdenv tetex lazylist;
|
inherit fetchurl stdenv tetex lazylist;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user