2021-06-09 18:40:05 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, boost, gtest }:
|
2014-11-17 00:22:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "lucene++";
|
2017-07-17 13:18:28 +00:00
|
|
|
version = "3.0.7";
|
2014-11-17 00:22:27 +00:00
|
|
|
|
2021-06-09 18:40:05 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "luceneplusplus";
|
|
|
|
repo = "LucenePlusPlus";
|
|
|
|
rev = "rel_${version}";
|
|
|
|
sha256 = "06b37fly6l27zc6kbm93f6khfsv61w792j8xihfagpcm9cfz2zi1";
|
2014-11-17 00:22:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e '/Subversion *REQUIRED/d' \
|
|
|
|
-e '/include.*CMakeExternal/d' \
|
|
|
|
CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DGTEST_INCLUDE_DIR=${gtest}/include" ];
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ boost gtest ];
|
2014-11-17 00:22:27 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "C++ port of the popular Java Lucene search engine";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/luceneplusplus/LucenePlusPlus";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = with lib.licenses; [ asl20 lgpl3Plus ];
|
|
|
|
platforms = lib.platforms.linux;
|
2014-11-17 00:22:27 +00:00
|
|
|
};
|
|
|
|
}
|