Skip to content

Commit 0746608

Browse files
sternenseemannalyssais
authored andcommitted
perlPackages.Xapian: init at 1.4.27
These are the perl bindings for xapian 1.4 shipped with their xapian-bindings release.
1 parent e63c0f8 commit 0746608

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

pkgs/development/libraries/xapian/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ let
4747

4848
passthru.tests = {
4949
inherit mu xapian-omega;
50-
inherit (perlPackages) SearchXapian;
50+
inherit (perlPackages) SearchXapian Xapian;
5151
python-xapian = python3.pkgs.xapian;
5252
};
5353

pkgs/top-level/perl-packages.nix

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28613,6 +28613,35 @@ with self; {
2861328613
};
2861428614
};
2861528615

28616+
Xapian = buildPerlModule rec {
28617+
pname = "Xapian";
28618+
version = "1.4.27";
28619+
src = fetchurl {
28620+
url = "https://oligarchy.co.uk/xapian/${version}/xapian-bindings-${version}.tar.xz";
28621+
sha256 = "1fhq6rydjymmyn79cdza0j4rmlizrrwmf5mx276rlmwyh085wfxs";
28622+
};
28623+
buildInputs = [ pkgs.xapian ];
28624+
preConfigure = ''
28625+
# FIXME: doesn't work for cross
28626+
export PERL_LIB="$out/lib/perl5/site_perl/${perl.version}"
28627+
export PERL_ARCH="$PERL_LIB/$(perl -MConfig -e 'print $Config{archname}')"
28628+
'';
28629+
configureFlags = [
28630+
"--with-perl"
28631+
];
28632+
outputs = [ "out" ]; # no "devdoc"
28633+
# Use default phases
28634+
buildPhase = null;
28635+
checkPhase = null;
28636+
checkTarget = "check";
28637+
installPhase = null;
28638+
meta = {
28639+
description = "Bindings allowing Xapian to be used from Perl";
28640+
homepage = "https://xapian.org";
28641+
license = [ lib.licenses.gpl2Plus ];
28642+
};
28643+
};
28644+
2861628645
XMLDescent = buildPerlModule {
2861728646
pname = "XML-Descent";
2861828647
version = "1.04";

0 commit comments

Comments
 (0)