mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
09e0cc7cc7
Homepage link "http://.../" is a permanent redirect to "https://.../" and should be updated https://repology.org/repository/nix_stable/problems
27 lines
777 B
Nix
27 lines
777 B
Nix
{ stdenv, fetchurl, libraw1394,
|
|
libusb1, CoreServices }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libdc1394-${version}";
|
|
version = "2.2.5";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/libdc1394/${name}.tar.gz";
|
|
sha256 = "0drk4sqvaym9glaraia25mj60rmwqbhy4j9h3x7gqpzfib8ch31m";
|
|
};
|
|
|
|
buildInputs = [ libusb1 ]
|
|
++ stdenv.lib.optional stdenv.isLinux libraw1394
|
|
++ stdenv.lib.optional stdenv.isDarwin CoreServices;
|
|
|
|
patches = stdenv.lib.optional stdenv.isDarwin ./darwin-fixes.patch;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://sourceforge.net/projects/libdc1394/;
|
|
description = "Capture and control API for IIDC compliant cameras";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = [ maintainers.viric ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|