mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
vtk: use system png
VTK doesn't seem produce png symbols on aarch64. We could probably figure out how to fix that but we can also just tell it to use the libpng we already have, which already works on aarch64.
This commit is contained in:
parent
97acd4c9e4
commit
26dedb8398
@ -1,5 +1,5 @@
|
||||
{ majorVersion, minorVersion, sourceSha256, patchesToFetch ? [] }:
|
||||
{ stdenv, lib, fetchurl, cmake, libGLU, libGL, libX11, xorgproto, libXt, libtiff
|
||||
{ stdenv, lib, fetchurl, cmake, libGLU, libGL, libX11, xorgproto, libXt, libpng, libtiff
|
||||
, fetchpatch
|
||||
, enableQt ? false, wrapQtAppsHook, qtbase, qtx11extras, qttools
|
||||
, enablePython ? false, pythonInterpreter ? throw "vtk: Python support requested, but no python interpreter was given."
|
||||
@ -24,7 +24,7 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [ libtiff ]
|
||||
buildInputs = [ libpng libtiff ]
|
||||
++ optionals enableQt [ qtbase qtx11extras qttools ]
|
||||
++ optionals stdenv.isLinux [
|
||||
libGLU
|
||||
@ -65,6 +65,7 @@ in stdenv.mkDerivation rec {
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_C_FLAGS=-fPIC"
|
||||
"-DCMAKE_CXX_FLAGS=-fPIC"
|
||||
"-DVTK_USE_SYSTEM_PNG=ON"
|
||||
"-DVTK_USE_SYSTEM_TIFF=1"
|
||||
"-DOPENGL_INCLUDE_DIR=${libGL}/include"
|
||||
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||
|
Loading…
Reference in New Issue
Block a user