summary refs log tree commit diff
diff options
context:
space:
mode:
authorHarrison Houghton <hora.rhino@gmail.com>2022-01-17 18:31:08 -0500
committerBenno Fünfstück <benno.fuenfstueck@gmail.com>2022-01-18 08:49:35 +0100
commit9789ed45b759c8f770bcba4b06c1a1c5ec386664 (patch)
tree7be2e02bd669f5599a89ef70d4dca6f54b9a8ef5
parent7ad3c5f9562a40b08494d7835c1b33c0520f48bd (diff)
downloadnixpkgs-9789ed45b759c8f770bcba4b06c1a1c5ec386664.tar
nixpkgs-9789ed45b759c8f770bcba4b06c1a1c5ec386664.tar.gz
nixpkgs-9789ed45b759c8f770bcba4b06c1a1c5ec386664.tar.bz2
nixpkgs-9789ed45b759c8f770bcba4b06c1a1c5ec386664.tar.lz
nixpkgs-9789ed45b759c8f770bcba4b06c1a1c5ec386664.tar.xz
nixpkgs-9789ed45b759c8f770bcba4b06c1a1c5ec386664.tar.zst
nixpkgs-9789ed45b759c8f770bcba4b06c1a1c5ec386664.zip
freenect: fix
As mentioned in the linked PKGBUILD, the proper variable is
GLUT_LIBRARIES these days.
-rw-r--r--pkgs/development/libraries/freenect/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/freenect/default.nix b/pkgs/development/libraries/freenect/default.nix
index 0e96a346f41..59b16138404 100644
--- a/pkgs/development/libraries/freenect/default.nix
+++ b/pkgs/development/libraries/freenect/default.nix
@@ -18,6 +18,11 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ cmake pkg-config ];
 
+  # see https://aur.archlinux.org/cgit/aur.git/commit/PKGBUILD?h=libfreenect&id=0d17db49ba64bcb9e3a4eed61cf55c9a5ceb97f1
+  patchPhase = lib.concatMapStrings (x: ''
+    substituteInPlace ${x} --replace "{GLUT_LIBRARY}" "{GLUT_LIBRARIES}"
+  '') [ "examples/CMakeLists.txt" "wrappers/cpp/CMakeLists.txt" ];
+
   meta = {
     description = "Drivers and libraries for the Xbox Kinect device on Windows, Linux, and macOS";
     homepage = "http://openkinect.org";