Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.11 28 lines 840 B view raw
1{ stdenv, lib, fetchFromGitHub, cmake, libusb1, pkg-config, freeglut, libGLU, libGL, libXi, libXmu 2, GLUT, Cocoa 3 }: 4 5stdenv.mkDerivation rec { 6 pname = "freenect"; 7 version = "0.6.2"; 8 9 src = fetchFromGitHub { 10 owner = "OpenKinect"; 11 repo = "libfreenect"; 12 rev = "v${version}"; 13 sha256 = "sha256-/CR+r9/zMj+8gxhHeRGPCDhALeF5bLsea38KQ1lF6wo="; 14 }; 15 16 buildInputs = [ libusb1 freeglut libGLU libGL libXi libXmu ] 17 ++ lib.optionals stdenv.isDarwin [ GLUT Cocoa ]; 18 19 nativeBuildInputs = [ cmake pkg-config ]; 20 21 meta = { 22 description = "Drivers and libraries for the Xbox Kinect device on Windows, Linux, and macOS"; 23 homepage = "http://openkinect.org"; 24 license = with lib.licenses; [ gpl2 asl20 ]; 25 maintainers = with lib.maintainers; [ bennofs ]; 26 platforms = with lib.platforms; linux ++ darwin ; 27 }; 28}