git.iko.soy/typeable/nixpkgs
on master help sign in
steam: Get rid of newStdcpp option, always on
commit734a04800a3b370ab8ce83533d3f8ff14a0c9b3a authorSarah Brofeldt <sbrofeldt@gmail.com> dateSun 10 Sep 2017, 10:54 (9 years ago) parent799435b
2 files changed+5−11
pkgs/games/steam/chrootenv.nix+2−7 pkgs/games/steam/runtime-wrapped.nix+3−4
pkgs/games/steam/chrootenv.nix+2−7
@@ -5,16 +5,11 @@
55, extraPkgs ? pkgs: [ ] # extra packages to add to targetPkgs
66, nativeOnly ? false
77, runtimeOnly ? false
8−, newStdcpp ? false
98}:
109
1110let
1211 commonTargetPkgs = pkgs: with pkgs;
1312 let
14− primus2 = if newStdcpp then primus else primus.override {
15− stdenv = overrideInStdenv stdenv [ useOldCXXAbi ];
16− stdenv_i686 = overrideInStdenv pkgsi686Linux.stdenv [ useOldCXXAbi ];
17− };
1813 tzdir = "${pkgs.tzdata}/share/zoneinfo";
1914 # I'm not sure if this is the best way to add things like this
2015 # to an FHSUserEnv
@@ -38,7 +33,7 @@ let
3833 # Zoneinfo
3934 etc-zoneinfo
4035 ] ++ lib.optional withJava jdk
41− ++ lib.optional withPrimus primus2
36+ ++ lib.optional withPrimus primus
4237 ++ extraPkgs pkgs;
4338
4439in buildFHSUserEnv rec {
@@ -68,7 +63,7 @@ in buildFHSUserEnv rec {
6863 xlibs.libpciaccess
6964
7065 (steamPackages.steam-runtime-wrapped.override {
71− inherit nativeOnly runtimeOnly newStdcpp;
66+ inherit nativeOnly runtimeOnly;
7267 })
7368 ];
7469
pkgs/games/steam/runtime-wrapped.nix+3−4
@@ -1,11 +1,9 @@
11{ stdenv, lib, perl, pkgs, steam-runtime
22, nativeOnly ? false
33, runtimeOnly ? false
4−, newStdcpp ? false
54}:
65
76assert !(nativeOnly && runtimeOnly);
8−assert newStdcpp -> !runtimeOnly;
97
108let
119 runtimePkgs = with pkgs; [
@@ -79,7 +77,7 @@ let
7977 SDL2_mixer
8078 gstreamer
8179 gst-plugins-base
82− ] ++ lib.optional (!newStdcpp) gcc48.cc;
80+ ];
8381
8482 overridePkgs = with pkgs; [
8583 libgpgerror
@@ -88,7 +86,8 @@ let
8886 openalSoft
8987 libva
9088 vulkan-loader
91− ] ++ lib.optional newStdcpp gcc.cc;
89+ gcc.cc
90+ ];
9291
9392 ourRuntime = if runtimeOnly then []
9493 else if nativeOnly then runtimePkgs ++ overridePkgs