Skip to content

Commit

Permalink
slop: fix build
Browse files Browse the repository at this point in the history
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:
* naelstrof/slop#135
* https://gitlab.exherbo.org/DanySpin97/danyspin97-exheres/-/issues/2
  • Loading branch information
superherointj authored and Shawn8901 committed Feb 17, 2023
1 parent e03a041 commit f8815f3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkgs/tools/misc/slop/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, glew
Expand All @@ -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
Expand Down

0 comments on commit f8815f3

Please sign in to comment.