vtk: move headers out of /include/vtk-*

I believe this is a remanant of a global /usr/include which isn't
required with Nix and only complicates dependants' build scripts.

Backwards compatibility is maintained by way of a symlink.
main
ckie 2 years ago
parent 16a1b346d4
commit 635992489c
No known key found for this signature in database
GPG Key ID: 13E79449C0525215
  1. 4
      pkgs/development/libraries/vtk/generic.nix

@ -94,6 +94,10 @@ in stdenv.mkDerivation rec {
for lib in $out/lib/libvtk*.so; do
ln -s $lib $out/lib/"$(basename "$lib" | sed -e 's/-[[:digit:]]*.[[:digit:]]*//g')"
done
mv $out/include/vtk-${majorVersion}/* $out/include
rmdir $out/include/vtk-${majorVersion}
ln -s $out/include $out/include/vtk-${majorVersion}
'';
meta = with lib; {

Loading…
Cancel
Save