Installing Paraview in headless/Offscreen mode using Spack

you could try this Building Paraview through spack - #7 by jfavre