2018-04-17 21:37:29 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk2, Carbon, useGTK ? 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
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
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";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|