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