1 { stdenv, writeScript }:
3 stdenv.mkDerivation rec {
4 name = "darwin-native-x11-and-opengl";
6 builder = writeScript "${name}-builder.sh" ''
9 /bin/ln -sv /usr/X11/lib/{*.dylib,X11,xorg} $out/lib
10 /bin/mkdir $out/lib/pkgconfig
11 /bin/ln -sv /usr/X11/lib/pkgconfig/{x*.pc,gl*.pc} $out/lib/pkgconfig
12 /bin/ln -sv /usr/X11/{bin,include,share} $out/