vtk: Don't open-code python.sitePackages

As suggested by @SuperSandro2000 in #208522.
This commit is contained in:
Ben Gamari 2023-01-09 18:36:50 -05:00
parent 57556157c9
commit 79d6df1b09

View file

@ -92,7 +92,7 @@ in stdenv.mkDerivation rec {
postInstall = optionalString enablePython ''
substitute \
${./vtk.egg-info} \
$out/lib/python${python.pythonVersion}/site-packages/vtk-${version}.egg-info \
$out/${python.sitePackages}/vtk-${version}.egg-info \
--subst-var-by VTK_VER "${version}"
'';