Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
28 lines
738 B
Nix
28 lines
738 B
Nix
{ config, lib, stdenv, fetchurl, pkg-config, gtk2, Carbon
|
|
, useGTK ? config.libiodbc.gtk or false }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libiodbc";
|
|
version = "3.52.16";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/iodbc/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-OJizLQeWE2D28s822zYDa3GaIw5HZGklioDzIkPoRfo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = lib.optionals useGTK [ gtk2 ]
|
|
++ lib.optional stdenv.hostPlatform.isDarwin Carbon;
|
|
|
|
preBuild =
|
|
''
|
|
export NIX_LDFLAGS_BEFORE="-rpath $out/lib"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "iODBC driver manager";
|
|
homepage = "https://www.iodbc.org";
|
|
platforms = platforms.unix;
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|