2020-06-24 08:29:49 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, glib, readline
|
2021-01-17 04:51:22 +01:00
|
|
|
, bison, flex, pkg-config, autoreconfHook, libxslt, makeWrapper
|
2020-06-24 08:29:49 +02:00
|
|
|
, txt2man, which
|
|
|
|
# withUi currently doesn't work. It compiles but fails to run.
|
|
|
|
, withUi ? false, gtk2, gnome2
|
|
|
|
}:
|
2009-11-18 10:39:59 +01:00
|
|
|
|
2020-06-24 08:29:49 +02:00
|
|
|
let
|
|
|
|
uiDeps = [ gtk2 ] ++ (with gnome2; [ GConf libglade libgnomeui gnome-doc-utils ]);
|
|
|
|
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "mdbtools";
|
2020-06-24 08:29:49 +02:00
|
|
|
version = "0.8.2";
|
2009-11-18 10:39:59 +01:00
|
|
|
|
2018-11-21 04:56:06 +01:00
|
|
|
src = fetchFromGitHub {
|
2020-06-24 08:29:49 +02:00
|
|
|
owner = "cyberemissary";
|
2018-11-21 04:56:06 +01:00
|
|
|
repo = "mdbtools";
|
|
|
|
rev = version;
|
2020-06-24 08:29:49 +02:00
|
|
|
sha256 = "12rhf6rgnws6br5dn1l2j7i77q9p4l6ryga10jpax01vvzhr26qc";
|
2008-05-11 11:45:26 +02:00
|
|
|
};
|
|
|
|
|
2020-06-24 08:29:49 +02:00
|
|
|
configureFlags = [ "--disable-scrollkeeper" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 04:51:22 +01:00
|
|
|
pkg-config bison flex autoreconfHook txt2man which
|
2020-06-24 08:29:49 +02:00
|
|
|
] ++ lib.optional withUi libxslt;
|
|
|
|
|
|
|
|
buildInputs = [ glib readline ] ++ lib.optionals withUi uiDeps;
|
2008-05-11 11:45:26 +02:00
|
|
|
|
2020-06-24 08:29:49 +02:00
|
|
|
enableParallelBuilding = true;
|
2008-05-11 11:45:26 +02:00
|
|
|
|
2020-06-24 08:29:49 +02:00
|
|
|
meta = with lib; {
|
2008-05-11 11:45:26 +02:00
|
|
|
description = ".mdb (MS Access) format tools";
|
2018-09-11 23:44:44 +02:00
|
|
|
license = with licenses; [ gpl2 lgpl2 ];
|
2020-06-24 08:29:49 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
inherit (src.meta) homepage;
|
2008-05-11 11:45:26 +02:00
|
|
|
};
|
|
|
|
}
|