diff options
Diffstat (limited to 'pkgs/games/steam')
-rw-r--r-- | pkgs/games/steam/runtime-wrapped.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/games/steam/runtime-wrapped.nix b/pkgs/games/steam/runtime-wrapped.nix index 56422deb1dbe..c1c79f8ac43b 100644 --- a/pkgs/games/steam/runtime-wrapped.nix +++ b/pkgs/games/steam/runtime-wrapped.nix @@ -1,9 +1,11 @@ -{ stdenv, perl, pkgs, steam-runtime +{ stdenv, lib, perl, pkgs, steam-runtime , nativeOnly ? false , runtimeOnly ? false +, newStdcpp ? false }: assert !(nativeOnly && runtimeOnly); +assert newStdcpp -> !runtimeOnly; let runtimePkgs = with pkgs; [ @@ -77,19 +79,18 @@ let SDL2_mixer gstreamer gst_plugins_base - ]; + ] ++ lib.optional (!newStdcpp) gcc48.cc; overridePkgs = with pkgs; [ - gcc48.cc # libstdc++ libpulseaudio alsaLib openalSoft - ]; + ] ++ lib.optional newStdcpp gcc.cc; ourRuntime = if runtimeOnly then [] else if nativeOnly then runtimePkgs ++ overridePkgs else overridePkgs; - steamRuntime = stdenv.lib.optional (!nativeOnly) steam-runtime; + steamRuntime = lib.optional (!nativeOnly) steam-runtime; in stdenv.mkDerivation rec { name = "steam-runtime-wrapped"; |