2021-01-21 17:00:13 +00:00
|
|
|
{ config, lib, stdenv, fetchurl, pkg-config, gtk2, Carbon
|
2019-02-03 15:33:27 +00:00
|
|
|
, useGTK ? config.libiodbc.gtk or false }:
|
2010-04-03 09:53:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-22 13:21:29 +00:00
|
|
|
pname = "libiodbc";
|
2021-12-10 03:23:31 +00:00
|
|
|
version = "3.52.15";
|
2010-04-03 09:53:38 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-22 13:21:29 +00:00
|
|
|
url = "mirror://sourceforge/iodbc/${pname}-${version}.tar.gz";
|
2021-12-10 03:23:31 +00:00
|
|
|
sha256 = "sha256-x0VB4zJ/yaHHzPEDZFRxxnvAFFQtcPVyR26wfAst1Dw=";
|
2010-04-03 09:53:38 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-01-21 17:00:13 +00:00
|
|
|
buildInputs = lib.optionals useGTK [ gtk2 ]
|
|
|
|
++ 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"
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2010-04-03 09:53:38 +00:00
|
|
|
description = "iODBC driver manager";
|
2020-04-01 01:11:51 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|