2020-02-21 13:33:57 +01:00
|
|
|
{ stdenv, fetchurl, pkg-config, libmysqlclient,
|
|
|
|
enableMysql ? true
|
2014-08-24 12:17:31 +02:00
|
|
|
}:
|
2014-07-06 14:08:39 +02:00
|
|
|
|
2020-02-21 13:33:57 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "sphinxsearch";
|
2020-02-21 13:33:57 +01:00
|
|
|
version = "2.2.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://sphinxsearch.com/files/sphinx-${version}-release.tar.gz";
|
|
|
|
sha256 = "1aa1mh32y019j8s3sjzn4vwi0xn83dwgl685jnbgh51k16gh6qk6";
|
|
|
|
};
|
2014-07-06 14:08:39 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--program-prefix=sphinxsearch-"
|
2014-09-04 14:21:28 +02:00
|
|
|
"--enable-id64"
|
2020-02-21 13:33:57 +01:00
|
|
|
] ++ stdenv.lib.optionals (!enableMysql) [
|
|
|
|
"--without-mysql"
|
2014-07-06 14:08:39 +02:00
|
|
|
];
|
|
|
|
|
2017-09-14 21:24:37 +02:00
|
|
|
nativeBuildInputs = [
|
2020-02-21 13:33:57 +01:00
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = stdenv.lib.optionals enableMysql [
|
|
|
|
libmysqlclient
|
2014-07-06 14:08:39 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 12:17:31 +02:00
|
|
|
description = "An open source full text search server";
|
2014-07-06 14:08:39 +02:00
|
|
|
homepage = http://sphinxsearch.com;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2020-02-27 16:16:57 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ederoyd46 valodim ];
|
2014-07-06 14:08:39 +02:00
|
|
|
};
|
|
|
|
}
|