From 97ac699883f575385b086cf10c2584d92854b64a Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Wed, 6 Jan 2021 12:14:44 -0600 Subject: [PATCH] octave.pkgs.video: init at 2.0.0 --- .../octave-modules/video/default.nix | 31 +++++++++++++++++++ pkgs/top-level/octave-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/octave-modules/video/default.nix diff --git a/pkgs/development/octave-modules/video/default.nix b/pkgs/development/octave-modules/video/default.nix new file mode 100644 index 000000000000..8467da98be99 --- /dev/null +++ b/pkgs/development/octave-modules/video/default.nix @@ -0,0 +1,31 @@ +{ buildOctavePackage +, lib +, fetchurl +, pkg-config +, ffmpeg +}: + +buildOctavePackage rec { + pname = "video"; + version = "2.0.0"; + + src = fetchurl { + url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz"; + sha256 = "0s6j3c4dh5nsbh84s7vnd2ajcayy1gn07b4fcyrcynch3wl28mrv"; + }; + + 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"; + }; +} diff --git a/pkgs/top-level/octave-packages.nix b/pkgs/top-level/octave-packages.nix index 27db2aa5d2c8..f8fc6151c828 100644 --- a/pkgs/top-level/octave-packages.nix +++ b/pkgs/top-level/octave-packages.nix @@ -209,4 +209,6 @@ makeScope newScope (self: # https://github.com/ENSTABretagneRobotics/VIBES }; + video = callPackage ../development/octave-modules/video { }; + })