2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig
|
|
|
|
, gtk3, portaudio, SDL2, ffmpeg, udev, libusb1, libv4l, alsaLib, gsl
|
2016-01-05 08:59:26 +00:00
|
|
|
, pulseaudioSupport ? true, libpulseaudio ? null }:
|
|
|
|
|
|
|
|
assert pulseaudioSupport -> libpulseaudio != null;
|
2014-02-06 22:00:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-04-22 11:45:35 +01:00
|
|
|
version = "2.0.5";
|
2016-01-05 08:44:18 +00:00
|
|
|
name = "guvcview-${version}";
|
2014-02-06 22:00:59 +00:00
|
|
|
|
2016-01-05 08:44:18 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/guvcview/source/guvcview-src-${version}.tar.gz";
|
2017-04-22 11:45:35 +01:00
|
|
|
sha256 = "a86beb5993a8449ed3cbcc6ec2a238ef0b90138b6cbe2afab4456d37f44c41a0";
|
2014-02-06 22:00:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
2016-01-05 08:44:18 +00:00
|
|
|
[ SDL2
|
2014-02-06 22:00:59 +00:00
|
|
|
alsaLib
|
|
|
|
ffmpeg
|
|
|
|
gtk3
|
|
|
|
intltool
|
|
|
|
libusb1
|
|
|
|
libv4l
|
|
|
|
pkgconfig
|
|
|
|
portaudio
|
|
|
|
udev
|
2016-01-05 08:44:18 +00:00
|
|
|
gsl
|
2016-10-01 22:23:05 +01:00
|
|
|
] ++ stdenv.lib.optional pulseaudioSupport libpulseaudio;
|
2014-02-06 22:00:59 +00:00
|
|
|
|
2018-08-29 23:22:31 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-02-06 22:00:59 +00:00
|
|
|
description = "A simple interface for devices supported by the linux UVC driver";
|
|
|
|
homepage = http://guvcview.sourceforge.net;
|
2018-08-29 23:22:31 +01:00
|
|
|
maintainers = [ maintainers.coconnor ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2014-02-06 22:00:59 +00:00
|
|
|
};
|
|
|
|
}
|