2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl, cmake, boost, gtest }:
|
2014-11-17 01:22:27 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "lucene++";
|
2017-07-17 15:18:28 +02:00
|
|
|
version = "3.0.7";
|
2014-11-17 01:22:27 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/luceneplusplus/LucenePlusPlus/"
|
|
|
|
+ "archive/rel_${version}.tar.gz";
|
2017-07-17 15:18:28 +02:00
|
|
|
sha256 = "032yb35b381ifm7wb8cy2m3yndklnxyi5cgprjh48jqy641z46bc";
|
2014-11-17 01:22:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e '/Subversion *REQUIRED/d' \
|
|
|
|
-e '/include.*CMakeExternal/d' \
|
|
|
|
CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DGTEST_INCLUDE_DIR=${gtest}/include" ];
|
|
|
|
buildInputs = [ cmake boost gtest ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "C++ port of the popular Java Lucene search engine";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/luceneplusplus/LucenePlusPlus";
|
2014-11-17 01:22:27 +01:00
|
|
|
license = with stdenv.lib.licenses; [ asl20 lgpl3Plus ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-11-17 01:22:27 +01:00
|
|
|
};
|
|
|
|
}
|