Commit 07466089 authored by sternenseemann's avatar sternenseemann Committed by Alyssa Ross
Browse files

perlPackages.Xapian: init at 1.4.27

These are the perl bindings for xapian 1.4 shipped with their
xapian-bindings release.
parent e63c0f8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ let

    passthru.tests = {
      inherit mu xapian-omega;
      inherit (perlPackages) SearchXapian;
      inherit (perlPackages) SearchXapian Xapian;
      python-xapian = python3.pkgs.xapian;
    };

+29 −0
Original line number Diff line number Diff line
@@ -28613,6 +28613,35 @@ with self; {
    };
  };
  Xapian = buildPerlModule rec {
    pname = "Xapian";
    version = "1.4.27";
    src = fetchurl {
      url = "https://oligarchy.co.uk/xapian/${version}/xapian-bindings-${version}.tar.xz";
      sha256 = "1fhq6rydjymmyn79cdza0j4rmlizrrwmf5mx276rlmwyh085wfxs";
    };
    buildInputs = [ pkgs.xapian ];
    preConfigure = ''
      # FIXME: doesn't work for cross
      export PERL_LIB="$out/lib/perl5/site_perl/${perl.version}"
      export PERL_ARCH="$PERL_LIB/$(perl -MConfig -e 'print $Config{archname}')"
    '';
    configureFlags = [
      "--with-perl"
    ];
    outputs = [ "out" ]; # no "devdoc"
    # Use default phases
    buildPhase = null;
    checkPhase = null;
    checkTarget = "check";
    installPhase = null;
    meta = {
      description = "Bindings allowing Xapian to be used from Perl";
      homepage = "https://xapian.org";
      license = [ lib.licenses.gpl2Plus ];
    };
  };
  XMLDescent = buildPerlModule {
    pname = "XML-Descent";
    version = "1.04";