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.
This commit is contained in:
ckie 2022-02-09 12:59:40 +02:00
parent 16a1b346d4
commit 635992489c
No known key found for this signature in database
GPG key ID: 13E79449C0525215

View file

@ -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; {