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