mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
28 lines
697 B
Nix
28 lines
697 B
Nix
{ config, lib, stdenv, fetchurl, pkg-config, gtk2, Carbon
|
|
, useGTK ? config.libiodbc.gtk or false }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libiodbc-3.52.12";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/iodbc/${name}.tar.gz";
|
|
sha256 = "0qpvklgr1lcn5g8xbz7fbc9rldqf9r8s6xybhqj20m4sglxgziai";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = lib.optionals useGTK [ gtk2 ]
|
|
++ lib.optional stdenv.isDarwin Carbon;
|
|
|
|
preBuild =
|
|
''
|
|
export NIX_LDFLAGS_BEFORE="-rpath $out/lib"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "iODBC driver manager";
|
|
homepage = "http://www.iodbc.org";
|
|
platforms = platforms.unix;
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|