2014-09-04 13:21:28 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig,
|
2015-03-28 10:04:39 +00:00
|
|
|
version ? "2.2.8",
|
2014-09-03 11:02:25 +01:00
|
|
|
mainSrc ? fetchurl {
|
2014-07-06 13:08:39 +01:00
|
|
|
url = "http://sphinxsearch.com/files/sphinx-${version}-release.tar.gz";
|
2015-03-28 10:04:39 +00:00
|
|
|
sha256 = "1q6jdw5g81k7ciw9fhwklb5ifgb8zna39795m0x0lbvwjbk3ampv";
|
2014-08-24 11:17:31 +01:00
|
|
|
}
|
|
|
|
}:
|
2014-07-06 13:08:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sphinxsearch-${version}";
|
|
|
|
src = mainSrc;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--program-prefix=sphinxsearch-"
|
2014-09-04 13:21:28 +01:00
|
|
|
"--without-mysql"
|
|
|
|
"--enable-id64"
|
2014-07-06 13:08:39 +01:00
|
|
|
];
|
|
|
|
|
2014-09-04 13:21:28 +01:00
|
|
|
buildInputs = [
|
2014-07-06 13:08:39 +01:00
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 11:17:31 +01:00
|
|
|
description = "An open source full text search server";
|
2014-07-06 13:08:39 +01:00
|
|
|
homepage = http://sphinxsearch.com;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ ederoyd46 ];
|
|
|
|
};
|
|
|
|
}
|