From bb3295b87e69de4b2bef949d8379c22b5ba39458 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Wed, 6 Jan 2021 11:12:33 -0600 Subject: [PATCH] octave.pkgs.image-acquisition: init at 0.2.2 --- .../image-acquisition/default.nix | 32 +++++++++++++++++++ pkgs/top-level/octave-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/octave-modules/image-acquisition/default.nix diff --git a/pkgs/development/octave-modules/image-acquisition/default.nix b/pkgs/development/octave-modules/image-acquisition/default.nix new file mode 100644 index 00000000000..08c4305999b --- /dev/null +++ b/pkgs/development/octave-modules/image-acquisition/default.nix @@ -0,0 +1,32 @@ +{ buildOctavePackage +, lib +, fetchurl +, libv4l +, fltk +}: + +buildOctavePackage rec { + pname = "image-acquisition"; + version = "0.2.2"; + + src = fetchurl { + url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz"; + sha256 = "1amp6npkddnnz2i5rm6gvn65qrbn0nxzl2cja3dvc2xqg396wrhh"; + }; + + buildInputs = [ + libv4l + fltk + ]; + + meta = with lib; { + homepage = "https://octave.sourceforge.io/image-acquisition/index.html"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ KarlJoad ]; + description = "Functions to capture images from connected devices"; + longDescription = '' + The Octave-forge Image Aquisition package provides functions to + capture images from connected devices. Currently only v4l2 is supported. + ''; + }; +} diff --git a/pkgs/top-level/octave-packages.nix b/pkgs/top-level/octave-packages.nix index 1c878135f2f..ef2f9e4d3db 100644 --- a/pkgs/top-level/octave-packages.nix +++ b/pkgs/top-level/octave-packages.nix @@ -113,6 +113,8 @@ makeScope newScope (self: image = callPackage ../development/octave-modules/image { }; + image-acquisition = callPackage ../development/octave-modules/image-acquisition { }; + io = callPackage ../development/octave-modules/io { inherit (octave) enableJava; };