1{
2 lib,
3 stdenv,
4 fetchurl,
5 libraw1394,
6 libusb1,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "libdc1394";
11 version = "2.2.7";
12
13 src = fetchurl {
14 url = "mirror://sourceforge/libdc1394/${pname}-${version}.tar.gz";
15 sha256 = "sha256-U3zreN087ycaGD9KF2GR0c7PhfAlUg5r03WLDhnmYJ8=";
16 };
17
18 hardeningDisable = [
19 # "sorry, unimplemented: __builtin_clear_padding not supported for variable length aggregates"
20 "trivialautovarinit"
21 ];
22
23 buildInputs = [ libusb1 ] ++ lib.optional stdenv.hostPlatform.isLinux libraw1394;
24
25 meta = with lib; {
26 description = "Capture and control API for IIDC compliant cameras";
27 homepage = "https://sourceforge.net/projects/libdc1394/";
28 license = licenses.lgpl21Plus;
29 maintainers = [ ];
30 mainProgram = "dc1394_reset_bus";
31 platforms = platforms.unix;
32 };
33}