2010-05-14 10:57:16 +02:00
|
|
|
{ stdenv, fetchurl, perl, curl, bzip2, sqlite, openssl ? null
|
2010-11-19 11:39:48 +01:00
|
|
|
, pkgconfig, boehmgc
|
2010-03-04 15:39:47 +01:00
|
|
|
, storeDir ? "/nix/store"
|
|
|
|
, stateDir ? "/nix/var"
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-12-10 11:22:23 +01:00
|
|
|
name = "nix-1.0pre25036";
|
2010-06-03 10:09:54 +02:00
|
|
|
|
2010-03-04 15:39:47 +01:00
|
|
|
src = fetchurl {
|
2010-12-10 11:22:23 +01:00
|
|
|
url = "http://hydra.nixos.org/build/787041/download/4/${name}.tar.bz2";
|
|
|
|
sha256 = "ccba5f44b75801187b766d4b98a53bccf335df35cde32aeab71630bfca7882f6";
|
2010-03-04 15:39:47 +01:00
|
|
|
};
|
|
|
|
|
2010-11-19 11:39:48 +01:00
|
|
|
buildInputs = [ perl curl openssl pkgconfig boehmgc ];
|
2010-03-04 15:39:47 +01:00
|
|
|
|
|
|
|
configureFlags = ''
|
|
|
|
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
2010-05-14 10:57:16 +02:00
|
|
|
--with-bzip2=${bzip2} --with-sqlite=${sqlite}
|
2010-03-04 15:39:47 +01:00
|
|
|
--disable-init-state
|
2010-11-19 11:39:48 +01:00
|
|
|
--enable-gc
|
2010-05-14 10:57:16 +02:00
|
|
|
CFLAGS=-O3 CXXFLAGS=-O3
|
2010-03-04 15:39:47 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The Nix Deployment System";
|
|
|
|
homepage = http://nixos.org/;
|
2010-08-27 10:43:51 +02:00
|
|
|
license = "LGPLv2+";
|
2010-03-04 15:39:47 +01:00
|
|
|
};
|
|
|
|
}
|