2016-09-12 00:24:51 +03:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk2, useGTK ? false }:
|
2010-04-03 13:53:38 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-27 07:40:29 +03:00
|
|
|
name = "libiodbc-3.52.12";
|
2010-04-03 13:53:38 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-06-13 19:26:50 +04:00
|
|
|
url = "mirror://sourceforge/iodbc/${name}.tar.gz";
|
2018-02-27 07:40:29 +03:00
|
|
|
sha256 = "0qpvklgr1lcn5g8xbz7fbc9rldqf9r8s6xybhqj20m4sglxgziai";
|
2010-04-03 13:53:38 +04:00
|
|
|
};
|
|
|
|
|
2017-09-06 00:26:13 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = stdenv.lib.optionals useGTK [ gtk2 ];
|
2010-04-03 13:53:38 +04:00
|
|
|
|
2012-06-13 19:26:50 +04:00
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
export NIX_LDFLAGS_BEFORE="-rpath $out/lib"
|
|
|
|
'';
|
|
|
|
|
2010-04-03 13:53:38 +04:00
|
|
|
meta = {
|
|
|
|
description = "iODBC driver manager";
|
|
|
|
homepage = http://www.iodbc.org;
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-04-03 13:53:38 +04:00
|
|
|
};
|
|
|
|
}
|