1{ stdenv, fetchgit, glib, readline, bison, flex, pkgconfig,
2 libiconv, autoreconfHook, which, txt2man, gnome_doc_utils, scrollkeeper }:
3
4stdenv.mkDerivation {
5 name = "mdbtools-git-2014-07-25";
6
7 src = fetchgit {
8 url = "http://github.com/brianb/mdbtools.git";
9 rev = "9ab40e83e6789015c965c92bdb62f92f8cdd0dbd";
10 sha256 = "0hlf5lk86xm0bpdlpk4a1zyfvbim76dhvmybxga2p7mbb1jc825l";
11 };
12
13 buildInputs = [
14 glib readline bison flex autoreconfHook pkgconfig which txt2man
15 gnome_doc_utils scrollkeeper libiconv
16 ];
17
18 preAutoreconf = ''
19 sed -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test x$enable_gtk_doc = xyes)' \
20 -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(ENABLE_SK, test x$enable_scrollkeeper = xyes)' \
21 -i configure.ac
22 '';
23
24 preConfigure = ''
25 sed -e 's@static \(GHashTable [*]mdb_backends;\)@\1@' -i src/libmdb/backend.c
26 '';
27
28 meta = {
29 description = ".mdb (MS Access) format tools";
30 platforms = stdenv.lib.platforms.linux;
31 };
32}