1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 03:25:02 +00:00
nixpkgs/pkgs/tools/misc/mdbtools/default.nix

30 lines
783 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, glib, readline
, bison, flex, pkgconfig, autoreconfHook
, txt2man, which }:
let version = "0.7.1";
in stdenv.mkDerivation {
name = "mdbtools-${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
'';
2018-09-11 22:44:44 +01:00
meta = with stdenv.lib; {
description = ".mdb (MS Access) format tools";
2018-09-11 22:44:44 +01:00
homepage = http://mdbtools.sourceforge.net;
platforms = platforms.unix;
license = with licenses; [ gpl2 lgpl2 ];
};
}