vtk_9: propagate libX11 and libGL on Linux
This commit is contained in:
parent
5eb3cbe103
commit
cf339f3d14
2 changed files with 4 additions and 6 deletions
|
@ -13,9 +13,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [ vtk_9 ]
|
||||
++ lib.optionals stdenv.isLinux [ libGL libX11 ]
|
||||
++ lib.optionals stdenv.isDarwin [ Cocoa OpenGL ];
|
||||
buildInputs = [ vtk_9 ] ++ lib.optionals stdenv.isDarwin [ Cocoa OpenGL ];
|
||||
|
||||
# conflict between VTK and Nixpkgs;
|
||||
# see https://github.com/NixOS/nixpkgs/issues/89167
|
||||
|
|
|
@ -30,8 +30,6 @@ in stdenv.mkDerivation rec {
|
|||
else [ (qtEnv "qvtk-qt-env" [ qtx11extras qttools qtdeclarative ]) ])
|
||||
++ optionals stdenv.isLinux [
|
||||
libGLU
|
||||
libGL
|
||||
libX11
|
||||
xorgproto
|
||||
libXt
|
||||
] ++ optionals stdenv.isDarwin [
|
||||
|
@ -51,7 +49,9 @@ in stdenv.mkDerivation rec {
|
|||
] ++ optionals enablePython [
|
||||
pythonInterpreter
|
||||
];
|
||||
propagatedBuildInputs = optionals stdenv.isDarwin [ libobjc ];
|
||||
propagatedBuildInputs = optionals stdenv.isDarwin [ libobjc ]
|
||||
++ optionals stdenv.isLinux [ libX11 libGL ];
|
||||
# see https://github.com/NixOS/nixpkgs/pull/178367#issuecomment-1238827254
|
||||
|
||||
patches = map fetchpatch patchesToFetch;
|
||||
|
||||
|
|
Loading…
Reference in a new issue