6 stdenv.mkDerivation rec {
7 pname = "openimajgrabber";
10 src = fetchFromGitHub {
13 rev = "openimaj-${version}";
14 sha256 = "sha256-Y8707ovE7f6Fk3cJ+PtwvzNpopgH5vlF55m2Xm4hjYM=";
17 buildInputs = [ libv4l ];
19 # These build instructions come from build.sh
21 pushd hardware/core-video-capture/src-native/linux
22 g++ -fPIC -g -c OpenIMAJGrabber.cpp
23 g++ -fPIC -g -c capture.cpp
24 g++ -shared -Wl,-soname,OpenIMAJGrabber.so -o OpenIMAJGrabber.so OpenIMAJGrabber.o capture.o -lv4l2 -lrt -lv4lconvert
30 cp hardware/core-video-capture/src-native/linux/OpenIMAJGrabber.so $out/lib
34 description = "Collection of libraries and tools for multimedia (images, text, video, audio, etc.) content analysis and content generation. This package only builds the OpenIMAJGrabber for Linux";
35 homepage = "http://www.openimaj.org";
36 license = licenses.bsd0;
37 maintainers = with maintainers; [ emmanuelrosa _1000101 ];
38 platforms = platforms.linux;