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

42 lines
1 KiB
Nix
Raw Normal View History

{ config, stdenv, fetchurl, intltool, pkgconfig
, gtk3, portaudio, SDL2, ffmpeg, udev, libusb1, libv4l, alsaLib, gsl, wrapGAppsHook
, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null }:
assert pulseaudioSupport -> libpulseaudio != null;
2014-02-06 23:00:59 +01:00
stdenv.mkDerivation rec {
version = "2.0.6";
pname = "guvcview";
2014-02-06 23:00:59 +01:00
src = fetchurl {
url = "mirror://sourceforge/project/guvcview/source/guvcview-src-${version}.tar.gz";
sha256 = "11byyfpkcik7wvf2qic77zjamfr2rhji97dpj1gy2fg1bvpiqf4m";
2014-02-06 23:00:59 +01: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";
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
};
}