Skip to content

Commit 950261b

Browse files
author
Jude Taylor
committed
darwin: fix gtk+3 dependencies
1 parent 5baf95c commit 950261b

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

pkgs/development/libraries/epoxy/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

pkgs/top-level/all-packages.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)