summary refs log tree commit diff
path: root/pkgs/os-specific/linux/guvcview/default.nix
blob: 6e4a2caba18d8c976310ae1a3023965b9a771ff6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ stdenv, fetchgit, intltool, autoreconfHook, gettext, pkgconfig
, gtk3, portaudio, libpng, SDL, ffmpeg, udev, libusb1, libv4l, alsaLib }:

stdenv.mkDerivation rec {
  version = "1.7.2";
  rev = "ab84b0b1ed358f0504e1218a0ef792a02b307af8";
  name = "guvcview-${version}_${rev}";

  src = fetchgit {
    inherit rev;
    url = "git://git.code.sf.net/p/guvcview/git-master";
    sha256 = "08cpbxq3dh2mlsgzk5dj3vfrgap4q281n9h6xzpbsvyifcj1a9n1";
  };

  buildInputs =
    [ SDL
      alsaLib
      autoreconfHook
      ffmpeg
      gtk3
      intltool
      libusb1
      libv4l
      pkgconfig
      portaudio
      udev
    ];

  preConfigure = ''
    ./bootstrap.sh
  '';

  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;
  };
}