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