2012-05-22 15:30:12 +01:00
|
|
|
{stdenv, fetchurl, which, libjpeg
|
|
|
|
, withQt4 ? false, qt4 ? null}:
|
2011-08-13 09:59:00 +01:00
|
|
|
|
2012-05-22 15:30:12 +01:00
|
|
|
assert withQt4 -> qt4 != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-20 23:07:32 +00:00
|
|
|
name = "v4l-utils-1.0.0";
|
2012-05-22 15:30:12 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://linuxtv.org/downloads/v4l-utils/${name}.tar.bz2";
|
2013-12-20 23:07:32 +00:00
|
|
|
sha256 = "0c2z500ijxr1ldzb4snasfpwi2icp04f8pk7akiqjkp0k4h8iqqx";
|
2011-08-13 09:59:00 +01:00
|
|
|
};
|
|
|
|
|
2013-01-20 15:23:28 +00:00
|
|
|
buildInputs = [ which ];
|
|
|
|
propagatedBuildInputs = [ libjpeg ] ++ stdenv.lib.optional withQt4 qt4;
|
2011-08-13 09:59:00 +01:00
|
|
|
|
2013-01-20 15:23:28 +00:00
|
|
|
preConfigure = ''configureFlags="--with-udevdir=$out/lib/udev"'';
|
2011-08-13 09:59:00 +01:00
|
|
|
|
|
|
|
meta = {
|
2012-05-22 15:30:12 +01:00
|
|
|
homepage = http://linuxtv.org/projects.php;
|
|
|
|
description = "V4L utils and libv4l, that provides common image formats regardless of the v4l device";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.free; # The libs are of LGPLv2.1+, some other pieces are GPL.
|
2012-05-22 15:30:12 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2011-08-13 09:59:00 +01:00
|
|
|
};
|
2012-05-22 15:30:12 +01:00
|
|
|
}
|