git.iko.soy/typeable/nixpkgs
on master help sign in
seeks: upgrade and add optional seeks_confDir
commit76a7b0ba68bbf9446e9eac0e532e892be15b63ec authorMatej Cotman <cotman.matej@gmail.com> dateMon 6 Oct 2014, 21:24 (12 years ago) parentd5570b0
2 files changed+30−14
pkgs/tools/networking/p2p/seeks/default.nix+29−11 pkgs/top-level/all-packages.nix+1−3
pkgs/tools/networking/p2p/seeks/default.nix+29−11
@@ -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}
pkgs/top-level/all-packages.nix+1−3
@@ -10193,9 +10193,7 @@ let
1019310193
1019410194 seafile-client = callPackage ../applications/networking/seafile-client { };
1019510195
10196− seeks = callPackage ../tools/networking/p2p/seeks {
10197− opencv = opencv_2_1;
10198− };
10196+ seeks = callPackage ../tools/networking/p2p/seeks { };
1019910197
1020010198 seg3d = callPackage ../applications/graphics/seg3d {
1020110199 wxGTK = wxGTK28.override { unicode = false; };