diff options
Diffstat (limited to 'pkgs/games/build-support/build-unity.nix')
-rw-r--r-- | pkgs/games/build-support/build-unity.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/games/build-support/build-unity.nix b/pkgs/games/build-support/build-unity.nix index 596c65be..6d7a6cb1 100644 --- a/pkgs/games/build-support/build-unity.nix +++ b/pkgs/games/build-support/build-unity.nix @@ -6,6 +6,7 @@ , nativeBuildInputs ? [] , buildInputs ? [] , runtimeDependencies ? [] +, sandbox ? {} , ... }@attrs: @@ -27,7 +28,13 @@ in buildGame ({ mesa xorg.libX11 xorg.libXcursor xorg.libXrandr libudev zlib ]; - extraSandboxPaths = [ "$XDG_CONFIG_HOME/unity3d" ]; + sandbox = sandbox // { + paths = (sandbox.paths or {}) // { + required = (sandbox.paths.required or []) ++ [ + "$XDG_CONFIG_HOME/unity3d" + ]; + }; + }; installPhase = '' runHook preInstall @@ -62,5 +69,5 @@ in buildGame ({ ''; } // removeAttrs attrs [ "name" "version" "fullName" "nativeBuildInputs" "buildInputs" - "runtimeDependencies" + "runtimeDependencies" "sandbox" ]) |