3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/freenect/default.nix

30 lines
856 B
Nix
Raw Normal View History

2019-11-10 16:44:34 +00:00
{ stdenv, lib, fetchFromGitHub, cmake, libusb, pkgconfig, freeglut, libGLU, libGL, libXi, libXmu
2018-03-14 22:11:51 +00:00
, GLUT, Cocoa
}:
2015-08-26 15:01:43 +01:00
stdenv.mkDerivation rec {
pname = "freenect";
2020-02-19 05:06:30 +00:00
version = "0.6.0";
2015-08-26 15:01:43 +01:00
2016-10-01 12:52:24 +01:00
src = fetchFromGitHub {
owner = "OpenKinect";
repo = "libfreenect";
rev = "v${version}";
2020-02-19 05:06:30 +00:00
sha256 = "1963xndbiwgj01q17zv6xbqlsbhfd236dkbdwkbjw4b0gr8kqzq9";
2015-09-02 09:26:29 +01:00
};
2015-08-26 15:01:43 +01:00
2019-11-10 16:44:34 +00:00
buildInputs = [ libusb freeglut libGLU libGL libXi libXmu ]
2018-03-14 22:11:51 +00:00
++ lib.optionals stdenv.isDarwin [ GLUT Cocoa ];
2015-09-02 09:26:29 +01:00
nativeBuildInputs = [ cmake pkgconfig ];
meta = {
description = "Drivers and libraries for the Xbox Kinect device on Windows, Linux, and macOS";
2015-09-02 09:26:29 +01:00
inherit version;
homepage = http://openkinect.org;
2018-03-14 22:11:51 +00:00
license = with lib.licenses; [ gpl2 asl20 ];
maintainers = with lib.maintainers; [ bennofs ];
platforms = with lib.platforms; linux ++ darwin ;
2015-09-02 09:26:29 +01:00
};
2015-08-26 15:01:43 +01:00
}