2019-02-03 16:33:17 +01:00
|
|
|
{ config, stdenv, fetchurl, intltool, pkgconfig
|
2020-04-06 09:37:41 +02:00
|
|
|
, gtk3, portaudio, SDL2, ffmpeg, udev, libusb1, libv4l, alsaLib, gsl, wrapGAppsHook
|
2019-02-03 16:33:17 +01:00
|
|
|
, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null }:
|
2016-01-05 09:59:26 +01:00
|
|
|
|
|
|
|
assert pulseaudioSupport -> libpulseaudio != null;
|
2014-02-06 23:00:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-06 08:52:43 +01:00
|
|
|
version = "2.0.6";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "guvcview";
|
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";
|
2019-02-06 08:52:43 +01:00
|
|
|
sha256 = "11byyfpkcik7wvf2qic77zjamfr2rhji97dpj1gy2fg1bvpiqf4m";
|
2014-02-06 23:00:59 +01:00
|
|
|
};
|
|
|
|
|
2020-04-06 09:37:41 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
alsaLib
|
|
|
|
ffmpeg
|
|
|
|
gtk3
|
|
|
|
intltool
|
|
|
|
libusb1
|
|
|
|
libv4l
|
|
|
|
pkgconfig
|
|
|
|
portaudio
|
|
|
|
udev
|
|
|
|
gsl
|
|
|
|
] ++ stdenv.lib.optional pulseaudioSupport libpulseaudio;
|
2014-02-06 23:00:59 +01:00
|
|
|
|
2018-08-30 00:22:31 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-02-06 23:00:59 +01:00
|
|
|
description = "A simple interface for devices supported by the linux UVC driver";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://guvcview.sourceforge.net";
|
2018-08-30 00:22:31 +02:00
|
|
|
maintainers = [ maintainers.coconnor ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2014-02-06 23:00:59 +01:00
|
|
|
};
|
|
|
|
}
|