Created
January 15, 2022 15:29
-
-
Save lapp0/9f1f409212771dce8bdd6ba89d120c7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libfreenect2 = with pkgs; stdenv.mkDerivation rec { | |
pname = "freenect2"; | |
version = "0.2.1"; | |
src = fetchFromGitHub { | |
owner = "OpenKinect"; | |
repo = "libfreenect2"; | |
rev = "v${version}"; | |
sha256 = "sha256-v+NQiR9LTQOwr1kgVpGmFSSemiPw4rmdQE/B6ycoLpU="; | |
}; | |
buildInputs = [ libusb1 freeglut libGLU libGL xorg.libXi xorg.libXmu libva libjpeg ] | |
++ lib.optionals stdenv.isDarwin [ GLUT Cocoa ]; | |
nativeBuildInputs = [ pkgs.cmake pkg-config ]; | |
}; | |
freenect2-python = with pkgs; pythonPackages.buildPythonPackage rec { | |
pname = "freenect2"; | |
version = "1.0.0"; | |
src = fetchFromGitHub { | |
owner = "rjw57"; | |
repo = "freenect2-python"; | |
rev = "f1c75cbb697ee0252d4afb78338d65c3b57baf8b"; | |
sha256 = "sha256-W/7o6h23G3TX813TRahSIaBi1DfDzVV0vx32TEDqO1Q="; | |
}; | |
nativeBuildInputs = [ pkg-config ]; | |
propagatedBuildInputs = with pythonPackages; [ numpy cffi pillow future libfreenect2 ]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment