about summary refs log tree commit diff
path: root/pkgs/development/libraries/libxml2
diff options
context:
space:
mode:
authorMartin Bravenboer <martin.bravenboer@logicblox.com>2004-08-19 15:28:48 +0000
committerMartin Bravenboer <martin.bravenboer@logicblox.com>2004-08-19 15:28:48 +0000
commitd1003bca3baea9bfe1d46efa686d7e17a32112e3 (patch)
tree3ddb3d5e50fd37ec7bff6ae367645d06eaa8e38d /pkgs/development/libraries/libxml2
parent51cdaa0338d89651fc57c0f289af4893932cc7f9 (diff)
Added arguments to the libxml2 Nix expression to control the creation of Python bindings. De default libxml2 in all-packages-generic now creates Python bindings for libxml2.
svn path=/nixpkgs/trunk/; revision=1297
Diffstat (limited to 'pkgs/development/libraries/libxml2')
-rw-r--r--pkgs/development/libraries/libxml2/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix
index b72673df16401..47068f071adaf 100644
--- a/pkgs/development/libraries/libxml2/default.nix
+++ b/pkgs/development/libraries/libxml2/default.nix
@@ -1,12 +1,20 @@
-{stdenv, fetchurl, zlib}:
+{stdenv, fetchurl, zlib, python ? null, pythonSupport ? true}:
 
 assert zlib != null;
+assert pythonSupport -> python != null;
 
 stdenv.mkDerivation {
   name = "libxml2-2.6.8";
+  builder = ./builder.sh;
+
   src = fetchurl {
     url = ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.8.tar.bz2;
     md5 = "f8a0dc1983f67db388baa0f7c65d2b70";
   };
+
+  python = if pythonSupport then python else null;
+  inherit pythonSupport;
+
+  buildInputs =  if pythonSupport then [python] else [];
   propagatedBuildInputs = [zlib];
 }