From 25865306f08f3d87e390c41065cf7db2f19323e0 Mon Sep 17 00:00:00 2001 From: Aaron Ash Date: Fri, 3 Jul 2020 10:44:29 +1000 Subject: [PATCH] paraview: Fix dataset filtering Paraview requires python and numpy to be available at runtime not just build time. Filtering a csv dataset uses numpy and throws an error without python and numpy being available in the propagatedBuildInputs. --- pkgs/applications/graphics/paraview/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/graphics/paraview/default.nix b/pkgs/applications/graphics/paraview/default.nix index b201f9dbf0da..d0c8d1c9ee94 100644 --- a/pkgs/applications/graphics/paraview/default.nix +++ b/pkgs/applications/graphics/paraview/default.nix @@ -66,7 +66,6 @@ mkDerivation rec { libGLU libGL libXt openmpi - (python3.withPackages (ps: with ps; [ numpy matplotlib mpi4py ])) tbb boost ffmpeg @@ -78,6 +77,10 @@ mkDerivation rec { qtsvg ]; + propagatedBuildInputs = [ + (python3.withPackages (ps: with ps; [ numpy matplotlib mpi4py ])) + ]; + meta = with stdenv.lib; { homepage = "https://www.paraview.org/"; description = "3D Data analysis and visualization application";