diff options
author | Someone Serge <else@someonex.net> | 2024-05-27 15:12:54 +0000 |
---|---|---|
committer | Someone Serge <else@someonex.net> | 2024-05-27 15:13:42 +0000 |
commit | a4ebe70f13c1f9d422d73bfab8fdbd203d4d64b7 (patch) | |
tree | f06e98ca59ea7484bf5c1cd690e839007674b945 /pkgs/development/libraries | |
parent | dab54f40972d67de4e0ecc8ab4b55f6bdae584f3 (diff) |
glfw3: retain a reference to libwayland-client.so
Glfw may dlopen libwayland-client.so. This was observed when testing .#imgui.tests.demo
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/glfw/3.x.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/glfw/3.x.nix b/pkgs/development/libraries/glfw/3.x.nix index 5e0b6adbb2267..67d5a0095148b 100644 --- a/pkgs/development/libraries/glfw/3.x.nix +++ b/pkgs/development/libraries/glfw/3.x.nix @@ -53,6 +53,11 @@ stdenv.mkDerivation rec { --replace "libxkbcommon.so.0" "${lib.getLib libxkbcommon}/lib/libxkbcommon.so.0" ''; + # glfw may dlopen libwayland-client.so: + postFixup = lib.optionalString stdenv.isLinux '' + patchelf ''${!outputLib}/lib/libglfw.so --add-rpath ${lib.getLib wayland}/lib + ''; + meta = with lib; { description = "Multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time"; homepage = "https://www.glfw.org/"; |