{ stdenv, fetchurl, libuuid, zlib }:

stdenv.mkDerivation {
  name = "xapian-1.3.1";

  src = fetchurl {
    url = http://oligarchy.co.uk/xapian/1.3.1/xapian-core-1.3.1.tar.gz;
    sha256 = "03z31z0xpj9a4aryr5hcq3y8wwv8qc1dn487ahzkfgir7rv0zvk4";
  };

  buildInputs = [ libuuid zlib ];

  configureFlags = [ "--program-suffix=" ];

  meta = { 
    description = "Search engine library";
    homepage = "http://xapian.org";
    license = stdenv.lib.licenses.gpl2Plus;
    maintainers = [ stdenv.lib.maintainers.chaoflow ];
  };
}

{ stdenv, fetchurl, libuuid, zlib }:

stdenv.mkDerivation {
  name = "xapian-1.2.8";

  src = fetchurl {
    url = http://oligarchy.co.uk/xapian/1.2.8/xapian-core-1.2.8.tar.gz;
    sha256 = "00411ebac66a5592b87fc57ccfeb234c84b929ed23c185befb5df9929df3d4f9";
  };

  buildInputs = [ libuuid zlib ];

  meta = { 
    description = "Search engine library";
    homepage = "http://xapian.org";
    license = stdenv.lib.licenses.gpl2Plus;
    maintainers = [ stdenv.lib.maintainers.chaoflow ];
  };
}

Revert "xapian: update from 1.2.8 to 1.3.1"
Revert "xapian: update from 1.2.8 to 1.3.1"

This reverts commit b76e8417b3ec2dd1809cd4660f60a6f6c49e42bc.

Breaks recoll, since bindings also need to be updated.
