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";
|
2023-05-04 10:02:10 +00:00
|
|
|
version = "3.52.16";
|
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";
|
2023-05-04 10:02:10 +00:00
|
|
|
sha256 = "sha256-OJizLQeWE2D28s822zYDa3GaIw5HZGklioDzIkPoRfo=";
|
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";
|
2023-02-19 20:43:38 +00:00
|
|
|
homepage = "https://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
|
|
|
};
|
|
|
|
}
|