nixpkgs/pkgs/development/libraries/strigi/default.nix
Matthew Bauer 4ed7a4b993 treewide: preserve hashes from 76999cc40e
76999cc40e changed some hashes resulting in this PR being technically
a mass rebuild. To avoid this, I am restoring some of the hashes (even
though it seems silly). My main goal is to get this PR merged quickly
as treewide changes like this get out-of-date quickly.

This commit should be reverted on the next mass rebuild.
2018-07-19 00:09:01 -04:00

44 lines
1.1 KiB
Nix

{ stdenv, fetchurl, cmake, qt4, perl, bzip2, libxml2, exiv2
, clucene_core, fam, zlib, dbus, pkgconfig
}:
stdenv.mkDerivation rec {
name = "strigi-${version}";
version = "0.7.8";
src = fetchurl {
url = "https://www.vandenoever.info/software/strigi/${name}.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;
};
}