summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-09-03 21:40:16 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-09-03 21:40:18 +0200
commitad815f42067d7924717f145ec7e98d0969ec3565 (patch)
treea8d0f32fa09d96ce768c8d6d06557d731faf2c4c /pkgs
parentdcaee875294106398ef15523087e35a9d3753066 (diff)
downloadnixlib-ad815f42067d7924717f145ec7e98d0969ec3565.tar
nixlib-ad815f42067d7924717f145ec7e98d0969ec3565.tar.gz
nixlib-ad815f42067d7924717f145ec7e98d0969ec3565.tar.bz2
nixlib-ad815f42067d7924717f145ec7e98d0969ec3565.tar.lz
nixlib-ad815f42067d7924717f145ec7e98d0969ec3565.tar.xz
nixlib-ad815f42067d7924717f145ec7e98d0969ec3565.tar.zst
nixlib-ad815f42067d7924717f145ec7e98d0969ec3565.zip
xapianBindings: 1.2.23 -> 1.4.0
The xapianBindings version is now directly tied to the input xapian
version, to ensure that they're in synch.

Also, as of this version, sphinx is required to build documentation
for the python bindings.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/xapian/bindings/default.nix13
-rw-r--r--pkgs/top-level/all-packages.nix1
2 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/development/libraries/xapian/bindings/default.nix b/pkgs/development/libraries/xapian/bindings/default.nix
index eeb480e6847b..4db6e57546ae 100644
--- a/pkgs/development/libraries/xapian/bindings/default.nix
+++ b/pkgs/development/libraries/xapian/bindings/default.nix
@@ -1,15 +1,18 @@
 { stdenv, composableDerivation, fetchurl, xapian, pkgconfig, zlib
-, python ? null, php ? null, ruby ? null }:
+, python ? null, sphinx ? null, php ? null, ruby ? null }:
+
+assert (python != null) -> (sphinx != null);
 
 let inherit (composableDerivation) wwf; in
 
 composableDerivation.composableDerivation {} rec {
 
-  name = "xapian-bindings-1.2.23";
+  name = "xapian-bindings-${version}";
+  version = (builtins.parseDrvName xapian.name).version;
 
   src = fetchurl {
-    url = "http://oligarchy.co.uk/xapian/1.2.23/${name}.tar.xz";
-    sha256 = "05929d9bq9df25kh2i6gk2w09w7p5qknf9cc7mrm2g46finbbd0r";
+    url = "http://oligarchy.co.uk/xapian/${version}/${name}.tar.xz";
+    sha256 = "0lv2zblayfax4v7z3sj067b0av0phf3gc2s2d1cvkw0bkl07mv1s";
   };
 
   buildInputs = [ xapian pkgconfig zlib ];
@@ -19,7 +22,7 @@ composableDerivation.composableDerivation {} rec {
          wwf {
            name = "python";
            enable = {
-            buildInputs = [ python ];
+            buildInputs = [ python sphinx ];
             # export same env vars as in pythonNew
             preConfigure = ''
               export PYTHON_LIB=$out/lib/${python.libPrefix}/site-packages
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f723fedd2da8..284b7e8148fe 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -9800,6 +9800,7 @@ in
 
   xapianBindings = callPackage ../development/libraries/xapian/bindings {  # TODO perl php Java, tcl, C#, python
     php = php56;
+    sphinx = pythonPackages.sphinx;
   };
 
   xapian-omega = callPackage ../tools/misc/xapian-omega {