2016-01-05 09:44:18 +01:00
|
|
|
{ stdenv, fetchurl, intltool, gettext, pkgconfig
|
2016-01-05 09:59:26 +01:00
|
|
|
, gtk3, portaudio, libpng, SDL2, ffmpeg, udev, libusb1, libv4l, alsaLib, gsl
|
|
|
|
, pulseaudioSupport ? true, libpulseaudio ? null }:
|
|
|
|
|
|
|
|
assert pulseaudioSupport -> libpulseaudio != null;
|
2014-02-06 23:00:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-26 07:44:24 +02:00
|
|
|
version = "2.0.4";
|
2016-01-05 09:44:18 +01:00
|
|
|
name = "guvcview-${version}";
|
2014-02-06 23:00:59 +01:00
|
|
|
|
2016-01-05 09:44:18 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/guvcview/source/guvcview-src-${version}.tar.gz";
|
2016-06-26 07:44:24 +02:00
|
|
|
sha256 = "18jg6dlqallpvjkb09dyn1v6prdmim4rrw22mhv8vdd9d18z83k7";
|
2014-02-06 23:00:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
2016-01-05 09:44:18 +01:00
|
|
|
[ SDL2
|
2014-02-06 23:00:59 +01:00
|
|
|
alsaLib
|
|
|
|
ffmpeg
|
|
|
|
gtk3
|
|
|
|
intltool
|
|
|
|
libusb1
|
|
|
|
libv4l
|
|
|
|
pkgconfig
|
|
|
|
portaudio
|
|
|
|
udev
|
2016-01-05 09:44:18 +01:00
|
|
|
gsl
|
2016-10-01 23:23:05 +02:00
|
|
|
] ++ stdenv.lib.optional pulseaudioSupport libpulseaudio;
|
2014-02-06 23:00:59 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A simple interface for devices supported by the linux UVC driver";
|
|
|
|
homepage = http://guvcview.sourceforge.net;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.coconnor ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|