2011-07-07 11:23:38 -07:00
|
|
|
{ stdenv, fetchurl, cmake, qt4, perl, bzip2, libxml2, exiv2
|
2018-07-17 13:11:16 -07:00
|
|
|
, clucene_core, fam, zlib, dbus, pkgconfig
|
2010-08-02 10:12:39 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "strigi";
|
2013-05-25 01:42:27 -07:00
|
|
|
version = "0.7.8";
|
2010-10-24 22:20:44 -07:00
|
|
|
|
2010-08-02 10:12:39 -07:00
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "https://www.vandenoever.info/software/strigi/${pname}-${version}.tar.bz2";
|
2013-05-25 01:42:27 -07:00
|
|
|
sha256 = "12grxzqwnvbyqw7q1gnz42lypadxmq89vk2qpxczmpmc4nk63r23";
|
2010-08-02 10:12:39 -07:00
|
|
|
};
|
2016-09-20 04:11:59 -07:00
|
|
|
|
2011-09-05 16:26:06 -07:00
|
|
|
includeAllQtDirs = true;
|
2011-02-22 03:54:49 -08:00
|
|
|
|
2011-07-07 11:23:38 -07:00
|
|
|
CLUCENE_HOME = clucene_core;
|
2011-02-22 03:54:49 -08:00
|
|
|
|
2011-07-07 11:23:38 -07:00
|
|
|
buildInputs =
|
2018-07-18 21:09:01 -07:00
|
|
|
[ zlib bzip2 libxml2 qt4 exiv2 clucene_core fam dbus.out ];
|
2012-01-02 03:16:48 -08:00
|
|
|
|
2012-12-28 10:20:09 -08:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig perl ];
|
2010-08-02 10:12:39 -07:00
|
|
|
|
2017-07-31 02:06:30 -07:00
|
|
|
patches = [ ./export_bufferedstream.patch ./gcc6.patch ];
|
2013-07-14 17:08:26 -07:00
|
|
|
|
2011-07-07 13:48:06 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-09-20 04:11:59 -07:00
|
|
|
# Strigi installs some libraries in an incorrect place
|
|
|
|
# ($out/$out/lib instead of $out/lib), so move them to the right
|
|
|
|
# place.
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
mv $out/$out/lib/* $out/lib
|
|
|
|
rm -rf $out/nix
|
|
|
|
'';
|
|
|
|
|
2010-08-02 10:12:39 -07:00
|
|
|
meta = {
|
|
|
|
homepage = http://strigi.sourceforge.net;
|
|
|
|
description = "A very fast and efficient crawler to index data on your harddrive";
|
|
|
|
license = "LGPL";
|
2017-03-27 10:11:17 -07:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ sander ];
|
2010-08-11 05:24:12 -07:00
|
|
|
inherit (qt4.meta) platforms;
|
2010-08-02 10:12:39 -07:00
|
|
|
};
|
|
|
|
}
|