From 48f289e3e38bcc0eeecdf3c9eeffbe79bd5cce7d Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 20 Oct 2023 12:35:34 +0000 Subject: [PATCH] cogl: force linking against libGL if used Otheriwse, if Cairo's GL backend is disabled, libGL doesn't end up in cogl's rpath, so applications using cogl (like gthumb) will fail to launch when they search for libGL and can't find it. --- pkgs/development/libraries/cogl/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/cogl/default.nix b/pkgs/development/libraries/cogl/default.nix index 41aa3045841f..c07c8b7c1501 100644 --- a/pkgs/development/libraries/cogl/default.nix +++ b/pkgs/development/libraries/cogl/default.nix @@ -53,6 +53,9 @@ stdenv.mkDerivation rec { "--enable-wayland-egl-server" "--enable-gles1" "--enable-gles2" + # Force linking against libGL. + # Otherwise, it tries to load it from the runtime library path. + "LIBS=-lGL" ] ++ lib.optionals stdenv.isDarwin [ "--disable-glx" "--without-x"