File tree Expand file tree Collapse file tree
development/libraries/epoxy Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
1616 nativeBuildInputs = [ autoreconfHook pkgconfig utilmacros python ] ;
1717 buildInputs = [ mesa libX11 ] ;
1818
19+ preConfigure = stdenv . lib . optional stdenv . isDarwin ''
20+ substituteInPlace configure --replace build_glx=no build_glx=yes
21+ substituteInPlace src/dispatch_common.h --replace "PLATFORM_HAS_GLX 0" "PLATFORM_HAS_GLX 1"
22+ '' ;
23+
1924 meta = with stdenv . lib ; {
2025 description = "A library for handling OpenGL function pointer management" ;
2126 homepage = https://github.com/anholt/libepoxy ;
Original file line number Diff line number Diff line change @@ -6331,7 +6331,11 @@ let
63316331
63326332 gettext = callPackage ../development/libraries/gettext { } ;
63336333
6334- gettextWithExpat = callPackage ../development/libraries/gettext/expat.nix { } ;
6334+ gettextWithExpat = if stdenv . isDarwin
6335+ then gettext . overrideDerivation ( drv : {
6336+ configureFlags = drv . configureFlags ++ [ "--with-libexpat-prefix=${ expat } " ] ;
6337+ } )
6338+ else callPackage ../development/libraries/gettext/expat.nix { } ;
63356339
63366340 gd = callPackage ../development/libraries/gd { } ;
63376341
You can’t perform that action at this time.
0 commit comments