From 7c3d9b9523319c0d365b108c4683159aa5d2ddc3 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Sat, 23 May 2026 12:56:29 -0500 Subject: [PATCH 1/2] octavePackages.statistics: Add graphics toolkit to test environment The `statistics` package is one of a few Octave packages that produce graphs as part of their test suite. So these require a plotting and graphics library to actually produce the plots. Add them so that `passthru.tests.testOctavePkgTests` work and pass, and so automated GitHub updates by r-ryantm work. --- .../octave-modules/statistics/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/development/octave-modules/statistics/default.nix b/pkgs/development/octave-modules/statistics/default.nix index bc7742fece29..25c2514703ef 100644 --- a/pkgs/development/octave-modules/statistics/default.nix +++ b/pkgs/development/octave-modules/statistics/default.nix @@ -4,6 +4,10 @@ fetchFromGitHub, io, datatypes, + mesa, + gnuplot, + makeFontsConf, + writableTmpDirAsHomeHook, }: buildOctavePackage rec { @@ -22,6 +26,16 @@ buildOctavePackage rec { datatypes ]; + nativeOctavePkgTestInputs = [ + mesa + gnuplot + writableTmpDirAsHomeHook + ]; + + octavePkgTestEnv.FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; }; + + __structuredAttrs = true; + meta = { homepage = "https://packages.octave.org/statistics"; license = with lib.licenses; [ From 4dfa4df9039759e3f3419f419faf4e57510167d8 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 23 May 2026 15:47:07 +0000 Subject: [PATCH 2/2] octavePackages.statistics: 1.8.2 -> 1.8.3 --- pkgs/development/octave-modules/statistics/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/octave-modules/statistics/default.nix b/pkgs/development/octave-modules/statistics/default.nix index 25c2514703ef..e29b26e52230 100644 --- a/pkgs/development/octave-modules/statistics/default.nix +++ b/pkgs/development/octave-modules/statistics/default.nix @@ -12,13 +12,13 @@ buildOctavePackage rec { pname = "statistics"; - version = "1.8.2"; + version = "1.8.3"; src = fetchFromGitHub { owner = "gnu-octave"; repo = "statistics"; tag = "release-${version}"; - hash = "sha256-5wUQLIMr1X07Yi4AANBFjd0izDzGNsI5ccY7IherB3I="; + hash = "sha256-1u/uXrbRNT14TbW89J8noCnwShD/B/Wz0cpurmsTzTU="; }; requiredOctavePackages = [