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:
parent
8cc94dc652
commit
e460a3f37c
12
pkgs/build-support/native-darwin-x11-and-opengl/default.nix
Normal file
12
pkgs/build-support/native-darwin-x11-and-opengl/default.nix
Normal 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/
|
||||
'';
|
||||
}
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user