2020-07-18 16:06:22 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, glib, readline
|
2023-07-15 17:15:38 +00:00
|
|
|
, bison, flex, pkg-config, autoreconfHook
|
2020-07-18 16:06:22 +00:00
|
|
|
, txt2man, which
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mdbtools";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-05-20 23:08:51 +00:00
|
|
|
owner = "mdbtools";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "mdbtools";
|
2021-05-20 23:08:51 +00:00
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-e9rgTWu8cwuccpp/wAfas1ZeQPTpGcgE6YjLz7KRnhw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
configureFlags = [ "--disable-scrollkeeper" ];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=unused-but-set-variable";
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config bison flex autoreconfHook txt2man which
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = [ glib readline ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = ".mdb (MS Access) format tools";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = with licenses; [ gpl2Plus lgpl2 ];
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-07-18 16:06:22 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
inherit (src.meta) homepage;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|