summary refs log tree commit diff
path: root/pkgs/development/libraries/libdc1394/default.nix
blob: 036adcef74cbeac8cc950f158a6f249c8f3971bd (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
{ stdenv, fetchurl, libraw1394,
libusb1, CoreServices }:

stdenv.mkDerivation rec {
  name = "libdc1394-${version}";
  version = "2.2.5";

  src = fetchurl {
    url = "mirror://sourceforge/libdc1394/${name}.tar.gz";
    sha256 = "0drk4sqvaym9glaraia25mj60rmwqbhy4j9h3x7gqpzfib8ch31m";
  };

  buildInputs = [ libusb1 ]
    ++ stdenv.lib.optional stdenv.isLinux libraw1394
    ++ stdenv.lib.optional stdenv.isDarwin CoreServices;

  patches = stdenv.lib.optional stdenv.isDarwin ./darwin-fixes.patch;

  meta = with stdenv.lib; {
    homepage = http://sourceforge.net/projects/libdc1394/;
    description = "Capture and control API for IIDC compliant cameras";
    license = licenses.lgpl21Plus;
    maintainers = [ maintainers.viric ];
    platforms = platforms.unix;
  };
}