summary refs log tree commit diff
path: root/pkgs/development/libraries/vtk
diff options
context:
space:
mode:
authorckie <git-525ff67@ckie.dev>2022-02-09 12:59:40 +0200
committerckie <git-525ff67@ckie.dev>2022-02-13 10:28:11 +0200
commit635992489cf0ceb53eb25ccd45bddef53afb2483 (patch)
tree71e4f4e9e56ee2ff6cdb0eed26872b79cac38e64 /pkgs/development/libraries/vtk
parent16a1b346d4ef285cffe712e898de18b4948c5ece (diff)
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.
Diffstat (limited to 'pkgs/development/libraries/vtk')
-rw-r--r--pkgs/development/libraries/vtk/generic.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/vtk/generic.nix b/pkgs/development/libraries/vtk/generic.nix
index 69e3609017794..d770bd54d04c0 100644
--- a/pkgs/development/libraries/vtk/generic.nix
+++ b/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; {