2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, libusb1, pkgconfig, freeglut, libGLU, libGL, libXi, libXmu
|
|
|
|
, GLUT, Cocoa
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "freenect";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "0.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenKinect";
|
|
|
|
repo = "libfreenect";
|
|
|
|
rev = "v${version}";
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "0was1va167rqshmpn382h36yyprpfi9cwillb6ylppmnfdrfrhrr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libusb1 freeglut libGLU libGL 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 lib.licenses; [ gpl2 asl20 ];
|
|
|
|
maintainers = with lib.maintainers; [ bennofs ];
|
|
|
|
platforms = with lib.platforms; linux ++ darwin ;
|
|
|
|
};
|
|
|
|
}
|