From 0c8024aa2a44747ccc0051a3c6fc15610b9ca734 Mon Sep 17 00:00:00 2001 From: Rasmus Enevoldsen Date: Mon, 2 Mar 2026 22:34:38 +0100 Subject: [PATCH] octavePackages.image-acquisition: 0.3.0 -> 0.3.3 --- .../image-acquisition/default.nix | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/development/octave-modules/image-acquisition/default.nix b/pkgs/development/octave-modules/image-acquisition/default.nix index 0cde88f66e12..251068c7087a 100644 --- a/pkgs/development/octave-modules/image-acquisition/default.nix +++ b/pkgs/development/octave-modules/image-acquisition/default.nix @@ -1,18 +1,21 @@ { buildOctavePackage, lib, - fetchurl, + fetchFromGitHub, libv4l, fltk, + nix-update-script, }: buildOctavePackage rec { pname = "image-acquisition"; - version = "0.3.0"; + version = "0.3.3"; - src = fetchurl { - url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz"; - sha256 = "sha256-vgLDbqFGlbXjDaxRtaBHAYYJ+wUjtB0NYYkQFIqTOgU="; + src = fetchFromGitHub { + owner = "Andy1978"; + repo = "octave-image-acquisition"; + tag = "image-acquisition-${version}"; + sha256 = "sha256-vS1i0PNAyfkxuMSfm+OGvFXkpbD4H6VJrs4eb+LxYBA="; }; buildInputs = [ @@ -23,6 +26,13 @@ buildOctavePackage rec { libv4l ]; + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "image-acquisition-(.*)" + ]; + }; + meta = { homepage = "https://gnu-octave.github.io/packages/image-acquisition/"; license = lib.licenses.gpl3Plus;