1 { config, lib, stdenv, fetchurl, pkg-config, gtk2, Carbon
2 , useGTK ? config.libiodbc.gtk or false }:
4 stdenv.mkDerivation rec {
9 url = "mirror://sourceforge/iodbc/${pname}-${version}.tar.gz";
10 sha256 = "sha256-x0VB4zJ/yaHHzPEDZFRxxnvAFFQtcPVyR26wfAst1Dw=";
13 nativeBuildInputs = [ pkg-config ];
14 buildInputs = lib.optionals useGTK [ gtk2 ]
15 ++ lib.optional stdenv.isDarwin Carbon;
19 export NIX_LDFLAGS_BEFORE="-rpath $out/lib"
23 description = "iODBC driver manager";
24 homepage = "http://www.iodbc.org";
25 platforms = platforms.unix;
26 license = licenses.bsd3;