2021-01-21 17:00:13 +00:00
|
|
|
{ config, lib, stdenv, fetchurl, pkg-config, gtk2, Carbon
|
2019-02-03 15:33:27 +00:00
|
|
|
, useGTK ? config.libiodbc.gtk or false }:
|
2010-04-03 10:53:38 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-27 04:40:29 +00:00
|
|
|
name = "libiodbc-3.52.12";
|
2010-04-03 10:53:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-06-13 16:26:50 +01:00
|
|
|
url = "mirror://sourceforge/iodbc/${name}.tar.gz";
|
2018-02-27 04:40:29 +00:00
|
|
|
sha256 = "0qpvklgr1lcn5g8xbz7fbc9rldqf9r8s6xybhqj20m4sglxgziai";
|
2010-04-03 10:53:38 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-01-21 17:00:13 +00:00
|
|
|
buildInputs = lib.optionals useGTK [ gtk2 ]
|
|
|
|
++ lib.optional stdenv.isDarwin Carbon;
|
2010-04-03 10:53:38 +01:00
|
|
|
|
2012-06-13 16:26:50 +01:00
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
export NIX_LDFLAGS_BEFORE="-rpath $out/lib"
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2010-04-03 10:53:38 +01:00
|
|
|
description = "iODBC driver manager";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.iodbc.org";
|
2018-10-17 19:55:14 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.bsd3;
|
2010-04-03 10:53:38 +01:00
|
|
|
};
|
|
|
|
}
|