forked from mirrors/nixpkgs
libepoxy: fix build on darwin
This commit is contained in:
parent
ac0d4017c5
commit
259565656c
|
@ -8,6 +8,8 @@
|
|||
, python3
|
||||
, libGL
|
||||
, libX11
|
||||
, Carbon
|
||||
, OpenGL
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -38,7 +40,13 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [ meson ninja pkg-config utilmacros python3 ];
|
||||
|
||||
buildInputs = [ libGL libX11 ];
|
||||
buildInputs = [
|
||||
libGL
|
||||
libX11
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
Carbon
|
||||
OpenGL
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dtests=${if doCheck then "true" else "false"}"
|
||||
|
|
|
@ -16142,7 +16142,9 @@ with pkgs;
|
|||
|
||||
entt = callPackage ../development/libraries/entt { };
|
||||
|
||||
libepoxy = callPackage ../development/libraries/libepoxy {};
|
||||
libepoxy = callPackage ../development/libraries/libepoxy {
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon OpenGL;
|
||||
};
|
||||
|
||||
libesmtp = callPackage ../development/libraries/libesmtp { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue