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

stdenv.mkDerivation rec {
  pname = "libdc1394";
  version = "2.2.7";

  src = fetchurl {
    url = "mirror://sourceforge/libdc1394/${pname}-${version}.tar.gz";
    sha256 = "sha256-U3zreN087ycaGD9KF2GR0c7PhfAlUg5r03WLDhnmYJ8=";
  };

  hardeningDisable = [
    # "sorry, unimplemented: __builtin_clear_padding not supported for variable length aggregates"
    "trivialautovarinit"
  ];

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

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