Nix overlay to change FHS environment

Untested, but this is the first thing I’d try:

lutris = super.lutris.override {
  buildFHSEnv = self.buildFHSEnv.override {
    callPackage =
      path: args: self.callPackage path (
        {
          pkgs = self // { SDL2 = SDL2_patched; };
        }
        // args
      );
  };
};
1 Like