nixpkgs/pkgs/development/libraries/libiodbc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
725 B
Nix
Raw Normal View History

{ config, lib, stdenv, fetchurl, pkg-config, gtk2, Carbon
, useGTK ? config.libiodbc.gtk or false }:
stdenv.mkDerivation rec {
2021-06-22 13:21:29 +00:00
pname = "libiodbc";
2023-05-04 10:02:10 +00:00
version = "3.52.16";
src = fetchurl {
2021-06-22 13:21:29 +00:00
url = "mirror://sourceforge/iodbc/${pname}-${version}.tar.gz";
2023-05-04 10:02:10 +00:00
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";
2018-10-17 18:55:14 +00:00
platforms = platforms.unix;
license = licenses.bsd3;
};
}