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