depot/third_party/nixpkgs/pkgs/development/libraries/freenect/default.nix
Default email d87170d3f2 Project import generated by Copybara.
GitOrigin-RevId: 967d40bec14be87262b21ab901dbace23b7365db
2021-07-18 23:22:44 +02:00

28 lines
840 B
Nix

{ stdenv, lib, fetchFromGitHub, cmake, libusb1, pkg-config, freeglut, libGLU, libGL, libXi, libXmu
, GLUT, Cocoa
}:
stdenv.mkDerivation rec {
pname = "freenect";
version = "0.6.2";
src = fetchFromGitHub {
owner = "OpenKinect";
repo = "libfreenect";
rev = "v${version}";
sha256 = "sha256-/CR+r9/zMj+8gxhHeRGPCDhALeF5bLsea38KQ1lF6wo=";
};
buildInputs = [ libusb1 freeglut libGLU libGL libXi libXmu ]
++ lib.optionals stdenv.isDarwin [ GLUT Cocoa ];
nativeBuildInputs = [ cmake pkg-config ];
meta = {
description = "Drivers and libraries for the Xbox Kinect device on Windows, Linux, and macOS";
homepage = "http://openkinect.org";
license = with lib.licenses; [ gpl2 asl20 ];
maintainers = with lib.maintainers; [ bennofs ];
platforms = with lib.platforms; linux ++ darwin ;
};
}