diff options
author | Alexander V. Nikolaev <avn@avnik.info> | 2018-09-19 11:50:35 +0300 |
---|---|---|
committer | Alexander V. Nikolaev <avn@avnik.info> | 2018-09-22 20:15:47 +0300 |
commit | f664181ef2594f35936073b349ec2a21c14c1757 (patch) | |
tree | 26f2c3da3e18b3a73619b24f81dd98d8830a527d /pkgs/development/libraries/glfw | |
parent | 1491d4f268421d64667dd136e4064a0550fc1bff (diff) |
glfw: hardwire path to libGL.so.1
Diffstat (limited to 'pkgs/development/libraries/glfw')
-rw-r--r-- | pkgs/development/libraries/glfw/3.x.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/glfw/3.x.nix b/pkgs/development/libraries/glfw/3.x.nix index 8d4d4d10038a2..73e2ca3e76dcf 100644 --- a/pkgs/development/libraries/glfw/3.x.nix +++ b/pkgs/development/libraries/glfw/3.x.nix @@ -25,6 +25,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/; |