From ddd40d7e27c5df252670b8fc835235ea897752f7 Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Tue, 14 Sep 2021 21:56:43 +0200 Subject: [PATCH] Fix steam on NixOS Signed-off-by: Magic_RB --- nix/systems/heater.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nix/systems/heater.nix b/nix/systems/heater.nix index c274594..c5a4705 100644 --- a/nix/systems/heater.nix +++ b/nix/systems/heater.nix @@ -158,7 +158,16 @@ inputs: { }; environment.systemPackages = - [ + (with pkgs; + [ (steam.override + { extraPkgs = pkgs: with pkgs; [ pango harfbuzz libthai ]; + extraLibraries = pkgs: with config.hardware.opengl; + if pkgs.hostPlatform.is64bit + then [ package ] ++ extraPackages + else [ package32 ] ++ extraPackages32; + }) + ]) + ++ [ (pkgs.rr.overrideAttrs (o: { src = pkgs.fetchFromGitHub { owner = "rr-debugger"; repo = "rr"; rev = "refs/heads/master"; sha256 = "sha256-q0PQxWuyAUVM4uEPzKhpMjvXWt0JfjdzCInNQfNItl8="; };} )) (pkgs.util-linux.overrideAttrs (o: { dontStrip = true;