@@ -1,28 +1,44 @@
1−{ fetchurl, stdenv, zlib, docbook2x, pcre, curl, libxml2, libevent, perl
2−, pkgconfig, protobuf, tokyocabinet, tokyotyrant, opencv
1+{ fetchgit, stdenv, zlib, docbook2x, pcre, curl, libxml2, libevent, perl
2+, pkgconfig, protobuf, tokyocabinet, tokyotyrant, opencv, autoconf, automake
3+, libtool, seeks_confDir ? ""
34}:
45
5−let version = "0.4.1"; in
66stdenv.mkDerivation {
7− name = "seeks-${version}";
7+ name = "seeks-0.4.1";
88
9− src = fetchurl {
10− url = "mirror://sourceforge/seeks/hippy/seeks-${version}.tar.gz";
11− sha256 = "1ppbbjw1zffxxhyvy64xwsff9xlw9wigqb7qwq5iw5mhbblz545q";
9+ src = fetchgit {
10+ url = "git://github.com/beniz/seeks.git";
11+ rev = "1168b3a2f3111c3fca31dd961135194c3e8df5fd";
12+ sha256 = "159k9fk1ry8cybrq38jxm1qyxks9hlkfz624hzwxlzah6xb2j8a4";
1213 };
1314
1415 buildInputs =
1516 [ zlib docbook2x pcre curl libxml2 libevent perl pkgconfig
16− protobuf tokyocabinet tokyotyrant opencv
17+ protobuf tokyocabinet tokyotyrant opencv autoconf automake libtool
1718 ];
1819
1920 configureFlags =
2021 [ # Enable the built-in web server providing a web search interface.
21− # See <http://www.seeks-project.info/wiki/index.php/Seeks_On_Web>.
2222 "--enable-httpserv-plugin=yes"
2323 "--with-libevent=${libevent}"
2424 ];
2525
26+ preConfigure = ''
27+ ./autogen.sh
28+ '';
29+
30+ postInstall = stdenv.lib.optionalString (seeks_confDir != "") ''
31+ ln -svf ${seeks_confDir}/config $out/etc/seeks/config
32+ ln -svf ${seeks_confDir}/cf-config $out/etc/seeks/cf-config
33+ ln -svf ${seeks_confDir}/httpserv-config $out/etc/seeks/httpserv-config
34+ ln -svf ${seeks_confDir}/img-websearch-config $out/etc/seeks/img-websearch-config
35+ ln -svf ${seeks_confDir}/lsh-config $out/etc/seeks/lsh-config
36+ ln -svf ${seeks_confDir}/query-capture-config $out/etc/seeks/query-capture-config
37+ ln -svf ${seeks_confDir}/udb-service-config $out/etc/seeks/udb-service-config
38+ ln -svf ${seeks_confDir}/uri-capture-config $out/etc/seeks/uri-capture-config
39+ ln -svf ${seeks_confDir}/websearch-config $out/etc/seeks/websearch-config
40+ '';
41+
2642 # FIXME: Test suite needs <https://code.google.com/p/googletest/>.
2743 doCheck = false;
2844
@@ -44,8 +60,10 @@ stdenv.mkDerivation {
4460
4561 homepage = http://www.seeks-project.info/;
4662
47− maintainers = [ stdenv.lib.maintainers.ludo ];
63+ maintainers = [
64+ stdenv.lib.maintainers.ludo
65+ stdenv.lib.maintainers.matejc
66+ ];
4867 platforms = stdenv.lib.platforms.gnu; # arbitrary choice
49− hydraPlatforms = [];
5068 };
5169}