nixpkgs/pkgs/os-specific/linux/guvcview/default.nix

37 lines
972 B
Nix
Raw Normal View History

{ stdenv, fetchurl, intltool, gettext, pkgconfig
, gtk3, portaudio, libpng, SDL2, ffmpeg, udev, libusb1, libv4l, alsaLib, gsl
, pulseaudioSupport ? true, libpulseaudio ? null }:
assert pulseaudioSupport -> libpulseaudio != null;
2014-02-06 22:00:59 +00:00
stdenv.mkDerivation rec {
version = "2.0.2";
name = "guvcview-${version}";
2014-02-06 22:00:59 +00:00
src = fetchurl {
url = "mirror://sourceforge/project/guvcview/source/guvcview-src-${version}.tar.gz";
sha256 = "1hnx6h2d3acwpw93ahj54nhizd6qrmylylq6qbjxvilbfprg6y34";
2014-02-06 22:00:59 +00:00
};
buildInputs =
[ SDL2
2014-02-06 22:00:59 +00:00
alsaLib
ffmpeg
gtk3
intltool
libusb1
libv4l
pkgconfig
portaudio
udev
gsl
] ++ stdenv.lib.optional pulseaudioSupport [ libpulseaudio ];
2014-02-06 22:00:59 +00: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;
};
}