1{ stdenv, fetchurl, cmake, qt4, perl, bzip2, libxml2, exiv2
2, clucene_core, fam, zlib, dbus_tools, pkgconfig
3}:
4
5stdenv.mkDerivation rec {
6 name = "strigi-${version}";
7 version = "0.7.8";
8
9 src = fetchurl {
10 url = "http://www.vandenoever.info/software/strigi/${name}.tar.bz2";
11 sha256 = "12grxzqwnvbyqw7q1gnz42lypadxmq89vk2qpxczmpmc4nk63r23";
12 };
13
14 includeAllQtDirs = true;
15
16 CLUCENE_HOME = clucene_core;
17
18 buildInputs =
19 [ zlib bzip2 libxml2 qt4 exiv2 clucene_core fam dbus_tools ];
20
21 nativeBuildInputs = [ cmake pkgconfig perl ];
22
23 patches = [ ./export_bufferedstream.patch ./gcc6.patch ];
24
25 enableParallelBuilding = true;
26
27 # Strigi installs some libraries in an incorrect place
28 # ($out/$out/lib instead of $out/lib), so move them to the right
29 # place.
30 postInstall =
31 ''
32 mv $out/$out/lib/* $out/lib
33 rm -rf $out/nix
34 '';
35
36 meta = {
37 homepage = http://strigi.sourceforge.net;
38 description = "A very fast and efficient crawler to index data on your harddrive";
39 license = "LGPL";
40 maintainers = with stdenv.lib.maintainers; [ sander ];
41 inherit (qt4.meta) platforms;
42 };
43}