1 { lib, stdenv, fetchurl, libusb-compat-0_1, libraw1394, dcraw, intltool, perl, v4l-utils }:
3 stdenv.mkDerivation rec {
8 url = "https://www.unicap-imaging.org/downloads/${pname}-${version}.tar.gz";
9 sha256 = "05zcnnm4dfc6idihfi0fq5xka6x86zi89wip2ca19yz768sd33s9";
12 nativeBuildInputs = [ intltool ];
13 buildInputs = [ libusb-compat-0_1 libraw1394 dcraw perl v4l-utils ];
16 # Debian has a patch that fixes the build.
18 url = "https://sources.debian.net/data/main/u/unicap/0.9.12-2/debian/patches/1009_v4l1.patch";
19 sha256 = "1lgypmhdj681m7d1nmzgvh19cz8agj2f31wlnfib0ha8i3g5hg5w";
24 find . -type f -exec sed -e '/linux\/types\.h/d' -i '{}' ';'
25 sed -e 's@/etc/udev@'"$out"'/&@' -i data/Makefile.*
29 description = "Universal video capture API";
30 homepage = "http://www.unicap-imaging.org/";
31 maintainers = [ maintainers.raskin ];
32 license = licenses.gpl2Plus;
33 platforms = platforms.linux;