2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, libraw1394
|
2019-06-06 03:55:15 +01:00
|
|
|
, libusb1, CoreServices }:
|
2012-05-03 08:38:58 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libdc1394";
|
2019-05-22 02:41:43 +01:00
|
|
|
version = "2.2.6";
|
2012-05-03 08:38:58 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/libdc1394/${pname}-${version}.tar.gz";
|
2019-05-22 02:41:43 +01:00
|
|
|
sha256 = "1v8gq54n1pg8izn7s15yylwjf8r1l1dmzbm2yvf6pv2fmb4mz41b";
|
2012-05-03 08:38:58 +01:00
|
|
|
};
|
|
|
|
|
2015-03-05 20:51:24 +00:00
|
|
|
buildInputs = [ libusb1 ]
|
2021-01-21 17:00:13 +00:00
|
|
|
++ lib.optional stdenv.isLinux libraw1394
|
|
|
|
++ lib.optional stdenv.isDarwin CoreServices;
|
2012-05-03 08:38:58 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/libdc1394/";
|
2012-05-03 08:38:58 +01:00
|
|
|
description = "Capture and control API for IIDC compliant cameras";
|
2017-03-15 21:15:42 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = [ maintainers.viric ];
|
|
|
|
platforms = platforms.unix;
|
2012-05-03 08:38:58 +01:00
|
|
|
};
|
|
|
|
}
|