From dbed3a071fe86ae546f4da7df96614e2000da75f Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Tue, 14 Feb 2023 17:16:37 -0300 Subject: [PATCH] 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 --- pkgs/tools/misc/slop/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/tools/misc/slop/default.nix b/pkgs/tools/misc/slop/default.nix index d0736761bad..05b008997b7 100644 --- a/pkgs/tools/misc/slop/default.nix +++ b/pkgs/tools/misc/slop/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , cmake , pkg-config , glew @@ -25,6 +26,15 @@ stdenv.mkDerivation rec { 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 = [ cmake pkg-config