2018-11-20 19:56:06 -08:00
|
|
|
{ stdenv, fetchFromGitHub, glib, readline
|
|
|
|
, bison, flex, pkgconfig, autoreconfHook
|
|
|
|
, txt2man, which }:
|
2009-11-18 01:39:59 -08:00
|
|
|
|
2018-11-20 19:56:06 -08:00
|
|
|
let version = "0.7.1";
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 14:52:01 -07:00
|
|
|
pname = "mdbtools";
|
|
|
|
inherit version;
|
2009-11-18 01:39:59 -08:00
|
|
|
|
2018-11-20 19:56:06 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brianb";
|
|
|
|
repo = "mdbtools";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0gwcpp9y09xhs21g7my2fs8ncb8i6ahlyixcx8jd3q97jbzj441l";
|
2008-05-11 02:45:26 -07:00
|
|
|
};
|
|
|
|
|
2018-11-20 19:56:06 -08:00
|
|
|
nativeBuildInputs = [ pkgconfig bison flex autoreconfHook txt2man which ];
|
|
|
|
buildInputs = [ glib readline ];
|
2008-05-11 02:45:26 -07:00
|
|
|
|
2009-11-18 01:39:59 -08:00
|
|
|
preConfigure = ''
|
2008-05-11 02:45:26 -07:00
|
|
|
sed -e 's@static \(GHashTable [*]mdb_backends;\)@\1@' -i src/libmdb/backend.c
|
2009-11-18 01:39:59 -08:00
|
|
|
'';
|
2008-05-11 02:45:26 -07:00
|
|
|
|
2018-09-11 14:44:44 -07:00
|
|
|
meta = with stdenv.lib; {
|
2008-05-11 02:45:26 -07:00
|
|
|
description = ".mdb (MS Access) format tools";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://mdbtools.sourceforge.net";
|
2018-09-11 14:44:44 -07:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = with licenses; [ gpl2 lgpl2 ];
|
2008-05-11 02:45:26 -07:00
|
|
|
};
|
|
|
|
}
|