blob: 6d6d7d46576d354a3fea38e4eacca2d4915146ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ 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.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;
};
}
|