freenect: enable Darwin building
This commit is contained in:
parent
0175bf648a
commit
4576ff8012
@ -1,4 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, libusb, pkgconfig, freeglut, libGLU_combined, libXi, libXmu }:
|
||||
{ stdenv, lib, fetchFromGitHub, cmake, libusb, pkgconfig, freeglut, libGLU_combined, libXi, libXmu
|
||||
, GLUT, Cocoa
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "freenect-${version}";
|
||||
@ -11,15 +13,17 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0vnc7z2avckh4mccqq6alsd2z7xvsh3kaslc5b0gnfxw0j269gl6";
|
||||
};
|
||||
|
||||
buildInputs = [ libusb freeglut libGLU_combined libXi libXmu ];
|
||||
buildInputs = [ libusb freeglut libGLU_combined libXi libXmu ]
|
||||
++ lib.optionals stdenv.isDarwin [ GLUT Cocoa ];
|
||||
|
||||
nativeBuildInputs = [ cmake pkgconfig ];
|
||||
|
||||
meta = {
|
||||
description = "Drivers and libraries for the Xbox Kinect device on Windows, Linux, and macOS";
|
||||
inherit version;
|
||||
homepage = http://openkinect.org;
|
||||
license = with stdenv.lib.licenses; [ gpl2 asl20 ];
|
||||
maintainers = with stdenv.lib.maintainers; [ bennofs ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
license = with lib.licenses; [ gpl2 asl20 ];
|
||||
maintainers = with lib.maintainers; [ bennofs ];
|
||||
platforms = with lib.platforms; linux ++ darwin ;
|
||||
};
|
||||
}
|
||||
|
@ -8807,7 +8807,9 @@ with pkgs;
|
||||
|
||||
freeglut = callPackage ../development/libraries/freeglut { };
|
||||
|
||||
freenect = callPackage ../development/libraries/freenect { };
|
||||
freenect = callPackage ../development/libraries/freenect {
|
||||
inherit (darwin.apple_sdk.frameworks) Cocoa GLUT;
|
||||
};
|
||||
|
||||
freetype = callPackage ../development/libraries/freetype { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user