mdbtools: 0.7.1 -> 0.8.2
This commit is contained in:
parent
4cdd64d907
commit
fd931623a5
|
@ -1,30 +1,40 @@
|
||||||
{ stdenv, fetchFromGitHub, glib, readline
|
{ stdenv, lib, fetchFromGitHub, glib, readline
|
||||||
, bison, flex, pkgconfig, autoreconfHook
|
, bison, flex, pkgconfig, autoreconfHook, libxslt, makeWrapper
|
||||||
, txt2man, which }:
|
, txt2man, which
|
||||||
|
# withUi currently doesn't work. It compiles but fails to run.
|
||||||
|
, withUi ? false, gtk2, gnome2
|
||||||
|
}:
|
||||||
|
|
||||||
let version = "0.7.1";
|
let
|
||||||
in stdenv.mkDerivation {
|
uiDeps = [ gtk2 ] ++ (with gnome2; [ GConf libglade libgnomeui gnome-doc-utils ]);
|
||||||
|
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
pname = "mdbtools";
|
pname = "mdbtools";
|
||||||
inherit version;
|
version = "0.8.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "brianb";
|
owner = "cyberemissary";
|
||||||
repo = "mdbtools";
|
repo = "mdbtools";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0gwcpp9y09xhs21g7my2fs8ncb8i6ahlyixcx8jd3q97jbzj441l";
|
sha256 = "12rhf6rgnws6br5dn1l2j7i77q9p4l6ryga10jpax01vvzhr26qc";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig bison flex autoreconfHook txt2man which ];
|
configureFlags = [ "--disable-scrollkeeper" ];
|
||||||
buildInputs = [ glib readline ];
|
|
||||||
|
|
||||||
preConfigure = ''
|
nativeBuildInputs = [
|
||||||
sed -e 's@static \(GHashTable [*]mdb_backends;\)@\1@' -i src/libmdb/backend.c
|
pkgconfig bison flex autoreconfHook txt2man which
|
||||||
'';
|
] ++ lib.optional withUi libxslt;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
buildInputs = [ glib readline ] ++ lib.optionals withUi uiDeps;
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = ".mdb (MS Access) format tools";
|
description = ".mdb (MS Access) format tools";
|
||||||
homepage = "http://mdbtools.sourceforge.net";
|
|
||||||
platforms = platforms.unix;
|
|
||||||
license = with licenses; [ gpl2 lgpl2 ];
|
license = with licenses; [ gpl2 lgpl2 ];
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
inherit (src.meta) homepage;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue