Merge pull request #47175 from avnik/fix/glfw

glfw: hardwire path to libGL.so.1
This commit is contained in:
Jörg Thalheim 2018-11-17 01:38:05 +00:00 committed by GitHub
commit 40449fe1ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,10 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
preConfigure = lib.optional (!stdenv.isDarwin) ''
substituteInPlace src/glx_context.c --replace "libGL.so.1" "${lib.getLib libGL}/lib/libGL.so.1"
'';
meta = with stdenv.lib; {
description = "Multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time";
homepage = http://www.glfw.org/;