about summary refs log tree commit diff
path: root/pkgs/games/default.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-03-15 04:22:27 +0100
committeraszlig <aszlig@redmoonstudios.org>2016-03-15 04:55:48 +0100
commit74ca4a9f0747862d968d7e36526a5b3c9750fec7 (patch)
tree91f49366a1d445f9ef432c83f3c8b12ae1001295 /pkgs/games/default.nix
parent5f0b5bba153b2169c7ca4e5bcaafdabbe2cb6d8a (diff)
pkgs: Hook in games into vuizvui package set
New we can reference the games using pkgs.vuizvui.games.*, although game
configuration currently still resorts to using ~/.config/nixgames.nix if
there is no nixpkgs.config.vuizvui.games set. In this vein, this should
also avoid Hydra to try to build those games, because those aren't
publicly available for free.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/games/default.nix')
-rw-r--r--pkgs/games/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/games/default.nix b/pkgs/games/default.nix
index d85bd191..27682563 100644
--- a/pkgs/games/default.nix
+++ b/pkgs/games/default.nix
@@ -1,4 +1,4 @@
-{ configuration ? null }:
+{ config ? null, pkgs ? import <nixpkgs> {} }:
 
 let
   configFilePath = let
@@ -17,9 +17,10 @@ let
     }
   '' else configFilePath;
 
-in ((import <nixpkgs/lib>).evalModules {
+in (pkgs.lib.evalModules {
   modules = [
-    (if configuration == null then configFilePath else configuration)
+    (if config == null then configFilePath else config)
     ./base-module.nix ./humblebundle ./steam
+    { config._module.args.pkgs = pkgs; }
   ];
 }).config.packages