2013-01-28 18:30:32 +00:00
|
|
|
{ stdenv, writeScript }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "darwin-native-x11-and-opengl";
|
|
|
|
|
|
|
|
builder = writeScript "${name}-builder.sh" ''
|
|
|
|
/bin/mkdir -p $out
|
2013-11-03 16:35:56 +00:00
|
|
|
/bin/mkdir $out/lib
|
|
|
|
/bin/ln -sv /usr/X11/lib/{*.dylib,X11,xorg} $out/lib
|
|
|
|
/bin/mkdir $out/lib/pkgconfig
|
|
|
|
/bin/ln -sv /usr/X11/lib/pkgconfig/{x*.pc,gl*.pc} $out/lib/pkgconfig
|
|
|
|
/bin/ln -sv /usr/X11/{bin,include,share} $out/
|
2013-01-28 18:30:32 +00:00
|
|
|
'';
|
|
|
|
}
|