2016-09-11 21:24:51 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk2, useGTK ? false }:
|
2010-04-03 09:53:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-06-13 15:26:50 +00:00
|
|
|
name = "libiodbc-3.52.8";
|
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";
|
|
|
|
sha256 = "16hjb6fcval85gnkgkxfhw4c5h3pgf86awyh8p2bhnnvzc0ma5hq";
|
2010-04-03 09:53:38 +00:00
|
|
|
};
|
|
|
|
|
2016-09-11 21:24:51 +00:00
|
|
|
buildInputs = stdenv.lib.optionals useGTK [ gtk2 pkgconfig ];
|
2010-04-03 09:53:38 +00:00
|
|
|
|
2012-06-13 15:26:50 +00:00
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
export NIX_LDFLAGS_BEFORE="-rpath $out/lib"
|
|
|
|
'';
|
|
|
|
|
2010-04-03 09:53:38 +00:00
|
|
|
meta = {
|
|
|
|
description = "iODBC driver manager";
|
|
|
|
homepage = http://www.iodbc.org;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-04-03 09:53:38 +00:00
|
|
|
};
|
|
|
|
}
|