pkgs/build-support/native-darwin-x11-and-opengl: lift native X11 and OpenGL implementation from Darwin into the Nix store

This commit is contained in:
Peter Simons 2013-01-28 19:30:32 +01:00
parent 8cc94dc652
commit e460a3f37c
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,12 @@
{ stdenv, writeScript }:
assert stdenv.isDarwin;
stdenv.mkDerivation rec {
name = "darwin-native-x11-and-opengl";
builder = writeScript "${name}-builder.sh" ''
/bin/mkdir -p $out
/bin/ln -sv /usr/X11/{bin,lib,include,share} $out/
'';
}

View File

@ -4587,6 +4587,8 @@ let
mesaSupported = lib.elem system lib.platforms.mesaPlatforms;
darwinX11AndOpenGL = callPackage ../build-support/native-darwin-x11-and-opengl { };
mesa = callPackage ../development/libraries/mesa { };
metaEnvironment = recurseIntoAttrs (let callPackage = newScope pkgs.metaEnvironment; in rec {