nixpkgs/pkgs/development/libraries/lucene++/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

32 lines
905 B
Nix

{ stdenv, fetchurl, fetchpatch, cmake, boost, gtest }:
stdenv.mkDerivation rec {
name = "lucene++-${version}";
version = "3.0.7";
src = fetchurl {
url = "https://github.com/luceneplusplus/LucenePlusPlus/"
+ "archive/rel_${version}.tar.gz";
sha256 = "032yb35b381ifm7wb8cy2m3yndklnxyi5cgprjh48jqy641z46bc";
};
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";
homepage = https://github.com/luceneplusplus/LucenePlusPlus;
license = with stdenv.lib.licenses; [ asl20 lgpl3Plus ];
platforms = stdenv.lib.platforms.linux;
};
}