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

30 lines
856 B
Nix
Raw Normal View History

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