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