2021-01-18 22:50:56 -08:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, libusb1, pkg-config, freeglut, libGLU, libGL, libXi, libXmu
|
2018-03-14 15:11:51 -07:00
|
|
|
, GLUT, Cocoa
|
|
|
|
}:
|
2015-08-26 07:01:43 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "freenect";
|
2020-05-18 23:02:53 -07:00
|
|
|
version = "0.6.1";
|
2015-08-26 07:01:43 -07:00
|
|
|
|
2016-10-01 04:52:24 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenKinect";
|
|
|
|
repo = "libfreenect";
|
|
|
|
rev = "v${version}";
|
2020-05-18 23:02:53 -07:00
|
|
|
sha256 = "0was1va167rqshmpn382h36yyprpfi9cwillb6ylppmnfdrfrhrr";
|
2015-09-02 01:26:29 -07:00
|
|
|
};
|
2015-08-26 07:01:43 -07:00
|
|
|
|
2020-04-04 00:44:12 -07:00
|
|
|
buildInputs = [ libusb1 freeglut libGLU libGL libXi libXmu ]
|
2018-03-14 15:11:51 -07:00
|
|
|
++ lib.optionals stdenv.isDarwin [ GLUT Cocoa ];
|
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2015-09-02 01:26:29 -07:00
|
|
|
|
|
|
|
meta = {
|
2017-08-06 15:05:18 -07:00
|
|
|
description = "Drivers and libraries for the Xbox Kinect device on Windows, Linux, and macOS";
|
2015-09-02 01:26:29 -07:00
|
|
|
inherit version;
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://openkinect.org";
|
2018-03-14 15:11:51 -07:00
|
|
|
license = with lib.licenses; [ gpl2 asl20 ];
|
|
|
|
maintainers = with lib.maintainers; [ bennofs ];
|
|
|
|
platforms = with lib.platforms; linux ++ darwin ;
|
2015-09-02 01:26:29 -07:00
|
|
|
};
|
2015-08-26 07:01:43 -07:00
|
|
|
}
|