{ stdenv, fetchurl, aterm, db4, perl, curl, bzip2, openssl ? null , storeDir ? "/nix/store" , stateDir ? "/nix/var" , supportOldDBs ? true }: stdenv.mkDerivation { name = "nix-0.12"; src = fetchurl { url = http://nixos.org/releases/nix/nix-0.12/nix-0.12.tar.bz2; sha256 = "44454670876ad0e96d551c94ba993903b84594ccf57fef17bc2d92b1f6b155b1"; }; 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"; }; }