depot/third_party/nixpkgs/pkgs/development/libraries/libdc1394/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

25 lines
733 B
Nix

{ lib, stdenv, fetchurl, libraw1394
, libusb1, CoreServices }:
stdenv.mkDerivation rec {
pname = "libdc1394";
version = "2.2.6";
src = fetchurl {
url = "mirror://sourceforge/libdc1394/${pname}-${version}.tar.gz";
sha256 = "1v8gq54n1pg8izn7s15yylwjf8r1l1dmzbm2yvf6pv2fmb4mz41b";
};
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;
};
}