nixpkgs/pkgs/development/libraries/freenect/default.nix

29 lines
840 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, cmake, libusb1, pkg-config, freeglut, libGLU, libGL, libXi, libXmu
2018-03-14 22:11:51 +00:00
, GLUT, Cocoa
}:
2015-08-26 14:01:43 +00:00
stdenv.mkDerivation rec {
pname = "freenect";
2021-02-14 01:27:48 +00:00
version = "0.6.2";
2015-08-26 14:01:43 +00:00
2016-10-01 11:52:24 +00:00
src = fetchFromGitHub {
owner = "OpenKinect";
repo = "libfreenect";
rev = "v${version}";
2021-02-14 01:27:48 +00:00
sha256 = "sha256-/CR+r9/zMj+8gxhHeRGPCDhALeF5bLsea38KQ1lF6wo=";
2015-09-02 08:26:29 +00:00
};
2015-08-26 14:01:43 +00:00
buildInputs = [ libusb1 freeglut libGLU libGL libXi libXmu ]
2018-03-14 22:11:51 +00:00
++ lib.optionals stdenv.isDarwin [ GLUT Cocoa ];
nativeBuildInputs = [ cmake pkg-config ];
2015-09-02 08:26:29 +00:00
meta = {
description = "Drivers and libraries for the Xbox Kinect device on Windows, Linux, and macOS";
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 08:26:29 +00:00
};
2015-08-26 14:01:43 +00:00
}