mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
37 lines
972 B
Nix
37 lines
972 B
Nix
{ stdenv, fetchurl, intltool, gettext, pkgconfig
|
|
, gtk3, portaudio, libpng, SDL2, ffmpeg, udev, libusb1, libv4l, alsaLib, gsl
|
|
, pulseaudioSupport ? true, libpulseaudio ? null }:
|
|
|
|
assert pulseaudioSupport -> libpulseaudio != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.0.4";
|
|
name = "guvcview-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/guvcview/source/guvcview-src-${version}.tar.gz";
|
|
sha256 = "18jg6dlqallpvjkb09dyn1v6prdmim4rrw22mhv8vdd9d18z83k7";
|
|
};
|
|
|
|
buildInputs =
|
|
[ SDL2
|
|
alsaLib
|
|
ffmpeg
|
|
gtk3
|
|
intltool
|
|
libusb1
|
|
libv4l
|
|
pkgconfig
|
|
portaudio
|
|
udev
|
|
gsl
|
|
] ++ stdenv.lib.optional pulseaudioSupport [ libpulseaudio ];
|
|
|
|
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;
|
|
};
|
|
}
|