From 79d6df1b098820b33b0c8595c3020460be7a139b Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Mon, 9 Jan 2023 18:36:50 -0500 Subject: [PATCH] vtk: Don't open-code python.sitePackages As suggested by @SuperSandro2000 in #208522. --- pkgs/development/libraries/vtk/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/vtk/generic.nix b/pkgs/development/libraries/vtk/generic.nix index 327e848d89ee..235202284bcb 100644 --- a/pkgs/development/libraries/vtk/generic.nix +++ b/pkgs/development/libraries/vtk/generic.nix @@ -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}" '';