blender: darwin add Applications and bin symlinks

This commit is contained in:
happysalada 2021-09-20 14:20:17 +09:00 committed by Raphael Megzari
parent 023239912c
commit e4baf44922

View file

@ -143,6 +143,10 @@ stdenv.mkDerivation rec {
--prefix PATH : $program_PATH \
--prefix PYTHONPATH : "$program_PYTHONPATH" \
--add-flags '--python-use-system-env'
'' + lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications/Blender.app
ln -s $out/Blender.app $out/Applications/Blender.app
ln -s $out/Blender.app/Contents/MacOS $out/bin
'';
# Set RUNPATH so that libcuda and libnvrtc in /run/opengl-driver(-32)/lib can be