steam-runtime-wrapped: add optional override of libstdc++

This commit is contained in:
Nikolay Amiantov 2016-01-15 14:54:01 +03:00
parent 31b5070cce
commit 9a07a8505e

View File

@ -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";