libiodbc: Build on darwin
This commit is contained in:
parent
c79d054a4c
commit
9c34d1069f
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in New Issue