diff options
author | Matej Cotman <cotman.matej@gmail.com> | 2014-10-06 21:24:09 +0200 |
---|---|---|
committer | Matej Cotman <cotman.matej@gmail.com> | 2014-10-13 13:10:49 +0200 |
commit | 76a7b0ba68bbf9446e9eac0e532e892be15b63ec (patch) | |
tree | 62a53bbade3161981aa05f34b06146c1150b5fb2 /pkgs/tools/networking/p2p/seeks | |
parent | d5570b082d8e8971c908bb1af452ce82ea357c2f (diff) | |
download | nixlib-76a7b0ba68bbf9446e9eac0e532e892be15b63ec.tar nixlib-76a7b0ba68bbf9446e9eac0e532e892be15b63ec.tar.gz nixlib-76a7b0ba68bbf9446e9eac0e532e892be15b63ec.tar.bz2 nixlib-76a7b0ba68bbf9446e9eac0e532e892be15b63ec.tar.lz nixlib-76a7b0ba68bbf9446e9eac0e532e892be15b63ec.tar.xz nixlib-76a7b0ba68bbf9446e9eac0e532e892be15b63ec.tar.zst nixlib-76a7b0ba68bbf9446e9eac0e532e892be15b63ec.zip |
seeks: upgrade and add optional seeks_confDir
Diffstat (limited to 'pkgs/tools/networking/p2p/seeks')
-rw-r--r-- | pkgs/tools/networking/p2p/seeks/default.nix | 40 |
1 files changed, 29 insertions, 11 deletions
diff --git a/pkgs/tools/networking/p2p/seeks/default.nix b/pkgs/tools/networking/p2p/seeks/default.nix index 8c707e2fcc72..91dcf1bbd007 100644 --- a/pkgs/tools/networking/p2p/seeks/default.nix +++ b/pkgs/tools/networking/p2p/seeks/default.nix @@ -1,28 +1,44 @@ -{ fetchurl, stdenv, zlib, docbook2x, pcre, curl, libxml2, libevent, perl -, pkgconfig, protobuf, tokyocabinet, tokyotyrant, opencv +{ fetchgit, stdenv, zlib, docbook2x, pcre, curl, libxml2, libevent, perl +, pkgconfig, protobuf, tokyocabinet, tokyotyrant, opencv, autoconf, automake +, libtool, seeks_confDir ? "" }: -let version = "0.4.1"; in stdenv.mkDerivation { - name = "seeks-${version}"; + name = "seeks-0.4.1"; - src = fetchurl { - url = "mirror://sourceforge/seeks/hippy/seeks-${version}.tar.gz"; - sha256 = "1ppbbjw1zffxxhyvy64xwsff9xlw9wigqb7qwq5iw5mhbblz545q"; + src = fetchgit { + url = "git://github.com/beniz/seeks.git"; + rev = "1168b3a2f3111c3fca31dd961135194c3e8df5fd"; + sha256 = "159k9fk1ry8cybrq38jxm1qyxks9hlkfz624hzwxlzah6xb2j8a4"; }; buildInputs = [ zlib docbook2x pcre curl libxml2 libevent perl pkgconfig - protobuf tokyocabinet tokyotyrant opencv + protobuf tokyocabinet tokyotyrant opencv autoconf automake libtool ]; configureFlags = [ # Enable the built-in web server providing a web search interface. - # See <http://www.seeks-project.info/wiki/index.php/Seeks_On_Web>. "--enable-httpserv-plugin=yes" "--with-libevent=${libevent}" ]; + preConfigure = '' + ./autogen.sh + ''; + + postInstall = stdenv.lib.optionalString (seeks_confDir != "") '' + ln -svf ${seeks_confDir}/config $out/etc/seeks/config + ln -svf ${seeks_confDir}/cf-config $out/etc/seeks/cf-config + ln -svf ${seeks_confDir}/httpserv-config $out/etc/seeks/httpserv-config + ln -svf ${seeks_confDir}/img-websearch-config $out/etc/seeks/img-websearch-config + ln -svf ${seeks_confDir}/lsh-config $out/etc/seeks/lsh-config + ln -svf ${seeks_confDir}/query-capture-config $out/etc/seeks/query-capture-config + ln -svf ${seeks_confDir}/udb-service-config $out/etc/seeks/udb-service-config + ln -svf ${seeks_confDir}/uri-capture-config $out/etc/seeks/uri-capture-config + ln -svf ${seeks_confDir}/websearch-config $out/etc/seeks/websearch-config + ''; + # FIXME: Test suite needs <https://code.google.com/p/googletest/>. doCheck = false; @@ -44,8 +60,10 @@ stdenv.mkDerivation { homepage = http://www.seeks-project.info/; - maintainers = [ stdenv.lib.maintainers.ludo ]; + maintainers = [ + stdenv.lib.maintainers.ludo + stdenv.lib.maintainers.matejc + ]; platforms = stdenv.lib.platforms.gnu; # arbitrary choice - hydraPlatforms = []; }; } |