slop: fix build

FindGLEW.cmake Module silently tries to include glew-config.cmake.
If it succeeds, then it stop and return to the caller.
However, glew-config.cmake only sets GLEW::GLEW, resulting in
missing glew shared library at link time.

References:
* https://github.com/naelstrof/slop/pull/135
* https://gitlab.exherbo.org/DanySpin97/danyspin97-exheres/-/issues/2
This commit is contained in:
superherointj 2023-02-14 17:16:37 -03:00
parent 82231cdde3
commit dbed3a071f

View File

@ -1,6 +1,7 @@
{ lib { lib
, stdenv , stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, cmake , cmake
, pkg-config , pkg-config
, glew , glew
@ -25,6 +26,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-LdBQxw8K8WWSfm4E2QpK4GYTuYvI+FX5gLOouVFSU/U="; sha256 = "sha256-LdBQxw8K8WWSfm4E2QpK4GYTuYvI+FX5gLOouVFSU/U=";
}; };
patches = [
(fetchpatch {
# From Upstream PR#135: https://github.com/naelstrof/slop/pull/135
name = "Fix-linking-of-GLEW-library.patch";
url = "https://github.com/naelstrof/slop/commit/811b7e44648b9dd6c1da1554e70298cf4157e5fe.patch";
sha256 = "sha256-LNUrAeVZUJFNOt1csOaIid7gLBdtqRxp8AcC7f3cnIQ=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
pkg-config pkg-config