Skip to content

Commit

Permalink
unixODBCDrivers.mdb: init as mdbtools alias
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyFrogeye committed Oct 8, 2024
1 parent e64cf99 commit 5f43381
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/development/libraries/unixODBCDrivers/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ fetchurl, stdenv, unixODBC, cmake, mariadb, sqlite, zlib, libxml2, dpkg, lib, openssl, libkrb5, libuuid, patchelf, libiconv, fixDarwinDylibNames, fetchFromGitHub, psqlodbc }:
{ fetchurl, stdenv, unixODBC, cmake, mariadb, sqlite, zlib, libxml2, dpkg, lib, openssl, libkrb5, libuuid, patchelf, libiconv, fixDarwinDylibNames, fetchFromGitHub, psqlodbc, mdbtools }:

# Each of these ODBC drivers can be configured in your odbcinst.ini file using
# the various passthru and meta values. Of note are:
Expand Down Expand Up @@ -309,4 +309,6 @@
maintainers = with maintainers; [ sir4ur0n ];
};
};

mdb = mdbtools.override { withUnixODBC = true; withLibiodbc = false; };
}
5 changes: 5 additions & 0 deletions pkgs/tools/misc/mdbtools/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ stdenv.mkDerivation rec {

enableParallelBuilding = true;

passthru = lib.optionalAttrs withUnixODBC {
fancyName = "MDBTools";
driver = "lib/odbc/libmdbodbc.so";
};

meta = with lib; {
description = ".mdb (MS Access) format tools";
license = with licenses; [ gpl2Plus lgpl2 ];
Expand Down

0 comments on commit 5f43381

Please sign in to comment.