2016-10-01 12:52:24 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, libusb, pkgconfig, freeglut, mesa, libXi, libXmu }:
|
2015-08-26 15:01:43 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-02 09:26:29 +01:00
|
|
|
name = "freenect-${version}";
|
2016-10-01 12:52:24 +01:00
|
|
|
version = "0.5.5";
|
2015-08-26 15:01:43 +01:00
|
|
|
|
2016-10-01 12:52:24 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenKinect";
|
|
|
|
repo = "libfreenect";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0qmbagfkxjgbwd2ajn7i5lkic9gx5y02bsnmqm7cjay99zfw9ifx";
|
2015-09-02 09:26:29 +01:00
|
|
|
};
|
2015-08-26 15:01:43 +01:00
|
|
|
|
2015-09-02 09:26:29 +01:00
|
|
|
buildInputs = [ libusb freeglut mesa libXi libXmu ];
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Drivers and libraries for the Xbox Kinect device on Windows, Linux, and OS X";
|
|
|
|
inherit version;
|
|
|
|
homepage = http://openkinect.org;
|
|
|
|
license = with stdenv.lib.licenses; [ gpl2 asl20 ];
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ bennofs ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2015-08-26 15:01:43 +01:00
|
|
|
}
|