vtk: create versionless symlinks in /lib

A little quality-of-life change for consumers of this library. Depending
on the upstream version in dependant derivations is inconveninent.
This commit is contained in:
ckie 2022-02-09 12:57:11 +02:00
parent ff34174fb7
commit 16a1b346d4
No known key found for this signature in database
GPG key ID: 13E79449C0525215

View file

@ -90,6 +90,12 @@ in stdenv.mkDerivation rec {
sed -i 's/fprintf(output, shift)/fprintf(output, "%s", shift)/g' ./ThirdParty/libxml2/vtklibxml2/xpath.c
'';
preFixup = ''
for lib in $out/lib/libvtk*.so; do
ln -s $lib $out/lib/"$(basename "$lib" | sed -e 's/-[[:digit:]]*.[[:digit:]]*//g')"
done
'';
meta = with lib; {
description = "Open source libraries for 3D computer graphics, image processing and visualization";
homepage = "https://www.vtk.org/";