From 9a07a8505ea666742b0f3161bcf80846fbf22e13 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Fri, 15 Jan 2016 14:54:01 +0300 Subject: steam-runtime-wrapped: add optional override of libstdc++ --- pkgs/games/steam/runtime-wrapped.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'pkgs/games/steam') 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"; -- cgit 1.4.1