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
724 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";
2021-12-10 03:23:31 +00:00
version = "3.52.15";
src = fetchurl {
2021-06-22 13:21:29 +00:00
url = "mirror://sourceforge/iodbc/${pname}-${version}.tar.gz";
2021-12-10 03:23:31 +00:00
sha256 = "sha256-x0VB4zJ/yaHHzPEDZFRxxnvAFFQtcPVyR26wfAst1Dw=";
};
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";
2018-10-17 18:55:14 +00:00
platforms = platforms.unix;
license = licenses.bsd3;
};
}