about summary refs log tree commit diff
path: root/pkgs/games/build-support/default.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2017-09-27 21:58:04 +0200
committeraszlig <aszlig@redmoonstudios.org>2017-10-03 23:41:23 +0200
commitede9acb3d19d981c66082323e0a02c7f42530dc8 (patch)
treed5bbf928e6b5bf3df8c99dd39a2140c72b513d4e /pkgs/games/build-support/default.nix
parent2554e3ce9096c7036cbea55d78828794085734af (diff)
pkgs/build-game: Introduce buildSandbox
So far creating the sandbox has been a setup hook, however it's a bit
ugly how we gathered the needed paths for the chroot file system by
recursively searching for store paths.

While I'd like to have the sandbox being built within the main
derivation, it really isn't very practical when the build takes longer
than 10 minutes.

With this implementation however the sandbox builds really fast and we
can also modify the sandbox without needing to rebuild a particular
game.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/games/build-support/default.nix')
-rw-r--r--pkgs/games/build-support/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/games/build-support/default.nix b/pkgs/games/build-support/default.nix
index 8e227afc..3017fe8e 100644
--- a/pkgs/games/build-support/default.nix
+++ b/pkgs/games/build-support/default.nix
@@ -4,5 +4,6 @@
   buildGame = callPackage ./build-game.nix {
     withPulseAudio = config.pulseaudio or true;
   };
+  buildSandbox = callPackage ./build-sandbox {};
   buildUnity = callPackage ./build-unity.nix {};
 }