summary refs log tree commit diff
path: root/pkgs/development/libraries/freenect/default.nix
blob: c79c389128b2f249c5b1b608a33e769425680a9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchzip, cmake, libusb, pkgconfig, freeglut, mesa, libXi, libXmu }:

stdenv.mkDerivation rec {
    name = "freenect-${version}";
    version = "0.5.2";
    src = fetchzip {
        url = "https://github.com/OpenKinect/libfreenect/archive/v${version}.tar.gz";
        sha256 = "04p4q19fkh97bn7kf0xsk6mrig2aj10i3s9z6hdrr70l6dfpf4w9";
    };

    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;
    };
}