From e4baf4492212f4268c31223ea91d43a1dfeeb405 Mon Sep 17 00:00:00 2001 From: happysalada Date: Mon, 20 Sep 2021 14:20:17 +0900 Subject: [PATCH] blender: darwin add Applications and bin symlinks --- pkgs/applications/misc/blender/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/misc/blender/default.nix b/pkgs/applications/misc/blender/default.nix index 59de68797830..3dfa6d9ab513 100644 --- a/pkgs/applications/misc/blender/default.nix +++ b/pkgs/applications/misc/blender/default.nix @@ -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