Skip to content

Commit

Permalink
blender: use PYTHONPATH (#82341)
Browse files Browse the repository at this point in the history
  • Loading branch information
amurrayc committed Mar 12, 2020
1 parent 37b590d commit fd614a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/applications/misc/blender/default.nix
Expand Up @@ -122,7 +122,8 @@ stdenv.mkDerivation rec {
# --python-expr is used to workaround https://developer.blender.org/T74304
postInstall = ''
wrapProgram $blenderExecutable \
--add-flags '--python-expr "import sys; sys.path.append(\"${python3Packages.numpy}/${python.sitePackages}\")"'
--prefix PYTHONPATH : ${python3Packages.numpy}/${python.sitePackages} \
--add-flags '--python-use-system-env'
'';

# Set RUNPATH so that libcuda and libnvrtc in /run/opengl-driver(-32)/lib can be
Expand Down

0 comments on commit fd614a7

Please sign in to comment.