depot/third_party/nixpkgs/pkgs/tools/misc/mdbtools/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
794 B
Nix

{ stdenv, fetchFromGitHub, glib, readline
, bison, flex, pkgconfig, autoreconfHook
, txt2man, which }:
let version = "0.7.1";
in stdenv.mkDerivation {
pname = "mdbtools";
inherit version;
src = fetchFromGitHub {
owner = "brianb";
repo = "mdbtools";
rev = version;
sha256 = "0gwcpp9y09xhs21g7my2fs8ncb8i6ahlyixcx8jd3q97jbzj441l";
};
nativeBuildInputs = [ pkgconfig bison flex autoreconfHook txt2man which ];
buildInputs = [ glib readline ];
preConfigure = ''
sed -e 's@static \(GHashTable [*]mdb_backends;\)@\1@' -i src/libmdb/backend.c
'';
meta = with stdenv.lib; {
description = ".mdb (MS Access) format tools";
homepage = "http://mdbtools.sourceforge.net";
platforms = platforms.unix;
license = with licenses; [ gpl2 lgpl2 ];
};
}