diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/freenect')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/freenect/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/freenect/default.nix b/nixpkgs/pkgs/development/libraries/freenect/default.nix new file mode 100644 index 000000000000..9520542481c8 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/freenect/default.nix @@ -0,0 +1,29 @@ +{ stdenv, lib, fetchFromGitHub, cmake, libusb, pkgconfig, freeglut, libGLU, libGL, libXi, libXmu +, GLUT, Cocoa + }: + +stdenv.mkDerivation rec { + pname = "freenect"; + version = "0.5.7"; + + src = fetchFromGitHub { + owner = "OpenKinect"; + repo = "libfreenect"; + rev = "v${version}"; + sha256 = "0vnc7z2avckh4mccqq6alsd2z7xvsh3kaslc5b0gnfxw0j269gl6"; + }; + + buildInputs = [ libusb 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 ; + }; +} |