Merge pull request #12404 from abbradar/steam-newlibcpp
Add options to use new libstdc++ on Steam
This commit is contained in:
commit
26bd247921
@ -1,11 +1,17 @@
|
|||||||
{ pkgs, newScope }:
|
{ pkgs, newScope
|
||||||
|
, nativeOnly ? false
|
||||||
|
, runtimeOnly ? false
|
||||||
|
, newStdcpp ? false
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
callPackage = newScope self;
|
callPackage = newScope self;
|
||||||
|
|
||||||
self = rec {
|
self = rec {
|
||||||
steam-runtime = callPackage ./runtime.nix { };
|
steam-runtime = callPackage ./runtime.nix { };
|
||||||
steam-runtime-wrapped = callPackage ./runtime-wrapped.nix { };
|
steam-runtime-wrapped = callPackage ./runtime-wrapped.nix {
|
||||||
|
inherit nativeOnly runtimeOnly newStdcpp;
|
||||||
|
};
|
||||||
steam = callPackage ./steam.nix { };
|
steam = callPackage ./steam.nix { };
|
||||||
steam-chrootenv = callPackage ./chrootenv.nix { };
|
steam-chrootenv = callPackage ./chrootenv.nix { };
|
||||||
steam-fonts = callPackage ./fonts.nix { };
|
steam-fonts = callPackage ./fonts.nix { };
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
{ stdenv, perl, pkgs, steam-runtime
|
{ stdenv, lib, perl, pkgs, steam-runtime
|
||||||
, nativeOnly ? false
|
, nativeOnly ? false
|
||||||
, runtimeOnly ? false
|
, runtimeOnly ? false
|
||||||
|
, newStdcpp ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert !(nativeOnly && runtimeOnly);
|
assert !(nativeOnly && runtimeOnly);
|
||||||
|
assert newStdcpp -> !runtimeOnly;
|
||||||
|
|
||||||
let
|
let
|
||||||
runtimePkgs = with pkgs; [
|
runtimePkgs = with pkgs; [
|
||||||
@ -77,19 +79,18 @@ let
|
|||||||
SDL2_mixer
|
SDL2_mixer
|
||||||
gstreamer
|
gstreamer
|
||||||
gst_plugins_base
|
gst_plugins_base
|
||||||
];
|
] ++ lib.optional (!newStdcpp) gcc48.cc;
|
||||||
|
|
||||||
overridePkgs = with pkgs; [
|
overridePkgs = with pkgs; [
|
||||||
gcc48.cc # libstdc++
|
|
||||||
libpulseaudio
|
libpulseaudio
|
||||||
alsaLib
|
alsaLib
|
||||||
openalSoft
|
openalSoft
|
||||||
];
|
] ++ lib.optional newStdcpp gcc.cc;
|
||||||
|
|
||||||
ourRuntime = if runtimeOnly then []
|
ourRuntime = if runtimeOnly then []
|
||||||
else if nativeOnly then runtimePkgs ++ overridePkgs
|
else if nativeOnly then runtimePkgs ++ overridePkgs
|
||||||
else overridePkgs;
|
else overridePkgs;
|
||||||
steamRuntime = stdenv.lib.optional (!nativeOnly) steam-runtime;
|
steamRuntime = lib.optional (!nativeOnly) steam-runtime;
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "steam-runtime-wrapped";
|
name = "steam-runtime-wrapped";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user