about summary refs log tree commit diff
path: root/pkgs/development/octave-modules/video/default.nix
blob: 985ec3cfbf4e9f37b590f968a5ebe8b178e46a5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ buildOctavePackage
, stdenv
, lib
, fetchurl
, pkg-config
, ffmpeg
}:

buildOctavePackage rec {
  pname = "video";
  version = "2.0.2";

  src = fetchurl {
    url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
    sha256 = "sha256-bZNaRnmJl5UF0bQMNoEWvoIXJaB0E6/V9eChE725OHY=";
  };

  nativeBuildInputs = [
    pkg-config
  ];

  propagatedBuildInputs = [
    ffmpeg
  ];

  meta = with lib; {
    homepage = "https://octave.sourceforge.io/video/index.html";
    license = with licenses; [ gpl3Plus bsd3 ];
    maintainers = with maintainers; [ KarlJoad ];
    description = "Wrapper for OpenCV's CvCapture_FFMPEG and CvVideoWriter_FFMPEG";
    # error: declaration of 'panic' has a different language linkage
    broken = stdenv.isDarwin;
  };
}