Jump to content

mabster314

New Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by mabster314

  1. I spent some time trying to get this mod working in NixOS. I had a similar problem to a lot of other Linux/OSX users where the window would not have any text. I fixed it by (1) adding a new flake input with a specific pinned version of nixpkgs containing SDL 2.0.14, (2) overriding the package to add an extra symlink (libSDL2-2.0.so.0 -> libSDL2-2.14.so), and (3) overriding steam to include that version of SDL2 1. Flake input In my system flake.nix: inputs.nixpkgs-sdl2.url = "github:NixOS/nixpkgs/62ace066c510b2d63b40a06919b6bb3d0ad765c0"; 2. and 3. Override SDL2 and steam (in my nixos configuration) { config, lib, pkgs, nixpkgs-sdl2, ... }: let pkgs-sdl2 = import nixpkgs-sdl2 { system = "x86_64-linux"; }; in let SDL2-patched = pkgs-sdl2.SDL2.overrideAttrs (prevAttrs: { postInstall = prevAttrs.postInstall + '' ln -s $out/lib/libSDL2-2.0.so.0 $out/lib/libSDL2-2.14.so ''; }); in { programs.steam = { enable = true; extraPackages = [ SDL2-patched ]; }; } Now it works when I launch the game via $ steam-run ./KSP.x86_64 which starts the game inside of a FHS-compatible chroot environment with all the libraries in the paths the game expects them, including the old version of SDL2 and the symlink.
×
×
  • Create New...