summary refs log tree commit diff
path: root/pkgs/development/libraries/strigi/default.nix
blob: 8121b7a501f7a749cffc6f6f29eaecdc15001aaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ stdenv, fetchurl, cmake, qt4, perl, bzip2, libxml2, exiv2
, clucene_core, fam, zlib, dbus, pkgconfig
}:

stdenv.mkDerivation rec {
  pname = "strigi";
  version = "0.7.8";

  src = fetchurl {
    url = "https://www.vandenoever.info/software/strigi/${pname}-${version}.tar.bz2";
    sha256 = "12grxzqwnvbyqw7q1gnz42lypadxmq89vk2qpxczmpmc4nk63r23";
  };

  includeAllQtDirs = true;

  CLUCENE_HOME = clucene_core;

  buildInputs =
    [ zlib bzip2 libxml2 qt4 exiv2 clucene_core fam dbus.out ];

  nativeBuildInputs = [ cmake pkgconfig perl ];

  patches = [ ./export_bufferedstream.patch ./gcc6.patch ];

  enableParallelBuilding = true;

  # 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
    '';

  meta = {
    homepage = http://strigi.sourceforge.net;
    description = "A very fast and efficient crawler to index data on your harddrive";
    license = "LGPL";
    maintainers = with stdenv.lib.maintainers; [ sander ];
    inherit (qt4.meta) platforms;
  };
}