From c1162ca5608df8cb4841e132302cab61f5ed2d41 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Thu, 4 Jan 2024 12:58:45 -0500 Subject: [PATCH] davinci-resolve-studio: Automatically create license dir Only needed for studio variant. Previously, `extraPreBwrapCmds` did not exist. Now that it does, we can use it. See message in commit fe45cd375a4b70fe761b188b77d81c4aabd85296 for context. --- pkgs/applications/video/davinci-resolve/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/video/davinci-resolve/default.nix b/pkgs/applications/video/davinci-resolve/default.nix index ba37c886352e..e1ac4526b160 100644 --- a/pkgs/applications/video/davinci-resolve/default.nix +++ b/pkgs/applications/video/davinci-resolve/default.nix @@ -232,6 +232,10 @@ buildFHSEnv { zlib ]; + extraPreBwrapCmds = lib.optionalString studioVariant '' + mkdir -p ~/.local/share/DaVinciResolve/license || exit 1 + ''; + extraBwrapArgs = lib.optionals studioVariant [ "--bind \"$HOME\"/.local/share/DaVinciResolve/license ${davinci}/.license" ];