Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 25 lines 802 B view raw
1{ stdenv, fetchFromGitHub, cmake, libusb, pkgconfig, freeglut, libGLU_combined, libXi, libXmu }: 2 3stdenv.mkDerivation rec { 4 name = "freenect-${version}"; 5 version = "0.5.5"; 6 7 src = fetchFromGitHub { 8 owner = "OpenKinect"; 9 repo = "libfreenect"; 10 rev = "v${version}"; 11 sha256 = "0qmbagfkxjgbwd2ajn7i5lkic9gx5y02bsnmqm7cjay99zfw9ifx"; 12 }; 13 14 buildInputs = [ libusb freeglut libGLU_combined libXi libXmu ]; 15 nativeBuildInputs = [ cmake pkgconfig ]; 16 17 meta = { 18 description = "Drivers and libraries for the Xbox Kinect device on Windows, Linux, and macOS"; 19 inherit version; 20 homepage = http://openkinect.org; 21 license = with stdenv.lib.licenses; [ gpl2 asl20 ]; 22 maintainers = with stdenv.lib.maintainers; [ bennofs ]; 23 platforms = stdenv.lib.platforms.linux; 24 }; 25}