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

30 lines
871 B
Nix
Raw Normal View History

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