39 lines
957 B
Nix
39 lines
957 B
Nix
{ stdenv, fetchurl, pkg-config, expat, libmysqlclient,
|
|
enableXmlpipe2 ? false,
|
|
enableMysql ? true
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sphinxsearch";
|
|
version = "2.2.11";
|
|
|
|
src = fetchurl {
|
|
url = "http://sphinxsearch.com/files/sphinx-${version}-release.tar.gz";
|
|
sha256 = "1aa1mh32y019j8s3sjzn4vwi0xn83dwgl685jnbgh51k16gh6qk6";
|
|
};
|
|
|
|
configureFlags = [
|
|
"--program-prefix=sphinxsearch-"
|
|
"--enable-id64"
|
|
] ++ stdenv.lib.optionals (!enableMysql) [
|
|
"--without-mysql"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = stdenv.lib.optionals enableMysql [
|
|
libmysqlclient
|
|
] ++ stdenv.lib.optionals enableXmlpipe2 [
|
|
expat
|
|
];
|
|
|
|
meta = {
|
|
description = "An open source full text search server";
|
|
homepage = http://sphinxsearch.com;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.all;
|
|
maintainers = with stdenv.lib.maintainers; [ ederoyd46 valodim ];
|
|
};
|
|
}
|