libiodbc: Build on darwin

This commit is contained in:
Matthew Pickering 2018-04-17 20:37:29 +01:00
parent c79d054a4c
commit 9c34d1069f
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gtk2, useGTK ? false }:
{ stdenv, fetchurl, pkgconfig, gtk2, Carbon, useGTK ? false }:
stdenv.mkDerivation rec {
name = "libiodbc-3.52.12";
@ -9,7 +9,8 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = stdenv.lib.optionals useGTK [ gtk2 ];
buildInputs = stdenv.lib.optionals useGTK [ gtk2 ]
++ stdenv.lib.optional stdenv.isDarwin Carbon;
preBuild =
''
@ -19,6 +20,6 @@ stdenv.mkDerivation rec {
meta = {
description = "iODBC driver manager";
homepage = http://www.iodbc.org;
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.unix;
};
}

View File

@ -10373,6 +10373,7 @@ with pkgs;
libiodbc = callPackage ../development/libraries/libiodbc {
useGTK = config.libiodbc.gtk or false;
inherit (darwin.apple_sdk.frameworks) Carbon;
};
libivykis = callPackage ../development/libraries/libivykis { };