2016-01-17 23:04:40 +00:00
|
|
|
{ stdenv, fetchgit, glib, readline, bison, flex, pkgconfig,
|
|
|
|
libiconv, autoreconfHook, which, txt2man, gnome_doc_utils, scrollkeeper }:
|
2010-09-30 16:50:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-09-03 17:54:15 +00:00
|
|
|
name = "mdbtools-git-2014-07-25";
|
2010-09-30 16:50:37 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "http://github.com/brianb/mdbtools.git";
|
2014-09-03 17:54:15 +00:00
|
|
|
rev = "9ab40e83e6789015c965c92bdb62f92f8cdd0dbd";
|
2016-06-02 11:26:44 +00:00
|
|
|
sha256 = "0hlf5lk86xm0bpdlpk4a1zyfvbim76dhvmybxga2p7mbb1jc825l";
|
2010-09-30 16:50:37 +00:00
|
|
|
};
|
|
|
|
|
2017-09-14 19:24:37 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-11-03 11:55:12 +00:00
|
|
|
buildInputs = [
|
2017-09-14 19:24:37 +00:00
|
|
|
glib readline bison flex autoreconfHook which txt2man
|
2016-01-17 23:04:40 +00:00
|
|
|
gnome_doc_utils scrollkeeper libiconv
|
2014-11-26 23:16:50 +00:00
|
|
|
];
|
2010-09-30 16:50:37 +00:00
|
|
|
|
2016-01-17 23:04:40 +00:00
|
|
|
preAutoreconf = ''
|
|
|
|
sed -e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test x$enable_gtk_doc = xyes)' \
|
|
|
|
-e '/ENABLE_GTK_DOC/aAM_CONDITIONAL(ENABLE_SK, test x$enable_scrollkeeper = xyes)' \
|
|
|
|
-i configure.ac
|
|
|
|
'';
|
|
|
|
|
2010-09-30 16:50:37 +00:00
|
|
|
preConfigure = ''
|
|
|
|
sed -e 's@static \(GHashTable [*]mdb_backends;\)@\1@' -i src/libmdb/backend.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = ".mdb (MS Access) format tools";
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-09-30 16:50:37 +00:00
|
|
|
};
|
|
|
|
}
|