2021-02-05 17:12:51 +00:00
|
|
|
{ config, lib, stdenv, fetchurl, pkg-config, gtk2, Carbon
|
2020-04-24 23:36:52 +00:00
|
|
|
, useGTK ? config.libiodbc.gtk or false }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "libiodbc";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "3.52.16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "mirror://sourceforge/iodbc/${pname}-${version}.tar.gz";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-OJizLQeWE2D28s822zYDa3GaIw5HZGklioDzIkPoRfo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = lib.optionals useGTK [ gtk2 ]
|
|
|
|
++ lib.optional stdenv.isDarwin Carbon;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
export NIX_LDFLAGS_BEFORE="-rpath $out/lib"
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "iODBC driver manager";
|
2023-02-22 10:55:15 +00:00
|
|
|
homepage = "https://www.iodbc.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|