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