From 29e0bc3103adb79cc7650c59c9ae3fb2d24cf0f4 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Tue, 13 Nov 2007 15:52:16 +0000 Subject: [PATCH] Added possibility to use non-default Nix. svn path=/nixpkgs/trunk/; revision=9663 --- pkgs/tools/package-management/nix/custom.nix | 24 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 6 +++++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/tools/package-management/nix/custom.nix diff --git a/pkgs/tools/package-management/nix/custom.nix b/pkgs/tools/package-management/nix/custom.nix new file mode 100644 index 00000000000..b5e87119957 --- /dev/null +++ b/pkgs/tools/package-management/nix/custom.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, aterm, db4, perl, curl, bzip2, openssl ? null +, storeDir ? "/nix/store" +, stateDir ? "/nix/var" +,src +}: + +stdenv.mkDerivation { + name = "nix-custom"; + + inherit src; + + buildInputs = [perl curl openssl]; + + configureFlags = " + --with-store-dir=${storeDir} --localstatedir=${stateDir} + --with-aterm=${aterm} --with-bdb=${db4} --with-bzip2=${bzip2} + --disable-init-state"; + + meta = { + description = "The Nix Deployment System"; + homepage = http://nix.cs.uu.nl/; + license = "LGPL"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 51cd2f60154..1f1721f734e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4524,6 +4524,12 @@ rec { db4 = db45; }; + nixCustomFun = src: (import ../tools/package-management/nix/custom.nix { + inherit fetchurl stdenv perl curl bzip2 openssl src; + aterm = aterm242fixes; + db4 = db45; + }); + ntfs3g = import ../misc/ntfs-3g { inherit fetchurl stdenv fuse pkgconfig; };