at 24.05-pre 25 lines 732 B view raw
1{ lib, stdenv, fetchurl, libraw1394 2, libusb1, CoreServices }: 3 4stdenv.mkDerivation rec { 5 pname = "libdc1394"; 6 version = "2.2.7"; 7 8 src = fetchurl { 9 url = "mirror://sourceforge/libdc1394/${pname}-${version}.tar.gz"; 10 sha256 = "sha256-U3zreN087ycaGD9KF2GR0c7PhfAlUg5r03WLDhnmYJ8="; 11 }; 12 13 buildInputs = [ libusb1 ] 14 ++ lib.optional stdenv.isLinux libraw1394 15 ++ lib.optional stdenv.isDarwin CoreServices; 16 17 meta = with lib; { 18 description = "Capture and control API for IIDC compliant cameras"; 19 homepage = "https://sourceforge.net/projects/libdc1394/"; 20 license = licenses.lgpl21Plus; 21 maintainers = [ maintainers.viric ]; 22 mainProgram = "dc1394_reset_bus"; 23 platforms = platforms.unix; 24 }; 25}