a644a08a25
svn path=/nixpkgs/trunk/; revision=13021
32 lines
827 B
Nix
32 lines
827 B
Nix
{ stdenv, fetchurl, aterm, db4, perl, curl, bzip2, openssl ? null
|
|
, storeDir ? "/nix/store"
|
|
, stateDir ? "/nix/var"
|
|
, supportOldDBs ? true
|
|
}:
|
|
|
|
let version = "0.12pre12876"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nix-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://nixos.org/releases/nix/nix-${version}-mlwc8b59/nix-${version}.tar.bz2";
|
|
sha256 = "480767060934ce4866bd2e6975de4964dc9519169e7512369b12750af4bb0238";
|
|
};
|
|
|
|
buildInputs = [perl curl openssl];
|
|
|
|
configureFlags = ''
|
|
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
|
--with-aterm=${aterm} --with-bzip2=${bzip2}
|
|
${if supportOldDBs then "--with-bdb=${db4}" else "--disable-old-db-compat"}
|
|
--disable-init-state
|
|
'';
|
|
|
|
meta = {
|
|
description = "The Nix Deployment System";
|
|
homepage = http://nixos.org/;
|
|
license = "LGPL";
|
|
};
|
|
}
|