1{ stdenv, fetchzip, cmake, libusb, pkgconfig, freeglut, mesa, libXi, libXmu }:
2
3stdenv.mkDerivation rec {
4 name = "freenect-${version}";
5 version = "0.5.2";
6
7 src = fetchzip {
8 url = "https://github.com/OpenKinect/libfreenect/archive/v${version}.tar.gz";
9 sha256 = "04p4q19fkh97bn7kf0xsk6mrig2aj10i3s9z6hdrr70l6dfpf4w9";
10 };
11
12 buildInputs = [ libusb freeglut mesa libXi libXmu ];
13 nativeBuildInputs = [ cmake pkgconfig ];
14
15 meta = {
16 description = "Drivers and libraries for the Xbox Kinect device on Windows, Linux, and OS X";
17 inherit version;
18 homepage = http://openkinect.org;
19 license = with stdenv.lib.licenses; [ gpl2 asl20 ];
20 maintainers = with stdenv.lib.maintainers; [ bennofs ];
21 platforms = stdenv.lib.platforms.linux;
22 };
23}