depot/third_party/nixpkgs/pkgs/development/libraries/libdc1394/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

30 lines
893 B
Nix

{ 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.hostPlatform.isLinux libraw1394
++ lib.optional stdenv.hostPlatform.isDarwin CoreServices;
meta = with lib; {
description = "Capture and control API for IIDC compliant cameras";
homepage = "https://sourceforge.net/projects/libdc1394/";
license = licenses.lgpl21Plus;
maintainers = [ ];
mainProgram = "dc1394_reset_bus";
platforms = platforms.unix;
};
}