diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-11-17 01:38:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-17 01:38:05 +0000 |
commit | 40449fe1aeda930d95a424e3d02507a77bdf2544 (patch) | |
tree | ca9e8151e67217523026eba9ddf47093c1bf2038 /pkgs/development/libraries/glfw | |
parent | d10c66c8cad36356f00e91fa2d4ff4f99525acb0 (diff) | |
parent | f664181ef2594f35936073b349ec2a21c14c1757 (diff) | |
download | nixpkgs-40449fe1aeda930d95a424e3d02507a77bdf2544.tar nixpkgs-40449fe1aeda930d95a424e3d02507a77bdf2544.tar.gz nixpkgs-40449fe1aeda930d95a424e3d02507a77bdf2544.tar.bz2 nixpkgs-40449fe1aeda930d95a424e3d02507a77bdf2544.tar.lz nixpkgs-40449fe1aeda930d95a424e3d02507a77bdf2544.tar.xz nixpkgs-40449fe1aeda930d95a424e3d02507a77bdf2544.tar.zst nixpkgs-40449fe1aeda930d95a424e3d02507a77bdf2544.zip |
Merge pull request #47175 from avnik/fix/glfw
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 9cbc60dcef5..668fe436e91 100644 --- a/pkgs/development/libraries/glfw/3.x.nix +++ b/pkgs/development/libraries/glfw/3.x.nix @@ -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/; |