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 nativeBuildInputs = [ pkgconfig ];
14 buildInputs = [
15 glib readline bison flex autoreconfHook which txt2man
16 gnome-doc-utils scrollkeeper libiconv
17 ];
18
19 preAutoreconf = ''
20 sed -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test x$enable_gtk_doc = xyes)' \
21 -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(ENABLE_SK, test x$enable_scrollkeeper = xyes)' \
22 -i configure.ac
23 '';
24
25 preConfigure = ''
26 sed -e 's@static \(GHashTable [*]mdb_backends;\)@\1@' -i src/libmdb/backend.c
27 '';
28
29 meta = {
30 description = ".mdb (MS Access) format tools";
31 platforms = stdenv.lib.platforms.linux;
32 };
33}