-
-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ppsspp: add SDL and headless #186441
ppsspp: add SDL and headless #186441
Conversation
ppsspp-sdl-wayland = callPackage ../applications/emulators/ppsspp { | ||
pname = "ppsspp-sdl-wayland"; | ||
forceWayland = true; | ||
enableVulkan = false; # https://github.com/hrydgard/ppsspp/issues/13845 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is preferrable to put such a documentation inside the expression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The relations between newly added parameters (enableVulkan
, enableHeadless
and forceWayland
) are a bit confusing, could you try to:
- remove uneeded ones, e.g. removing
enableHeadless
and enabling it if possible - and add
assert
to make sure these arguments are valid?
Change the default ppsspp package to SDL frontend, as it supports vulkan, and is allowed to build the headless binary together.
mkdir -p $out/share/{applications,ppsspp} | ||
'' + (if enableQt then '' | ||
install -Dm555 PPSSPPQt $out/bin/ppsspp | ||
wrapProgram $out/bin/ppsspp \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the parameters of this wrapping?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case enableVulkan
is overridden to be true
, it would be wrapped with --prefix LD_LIBRARY_PATH : ${vulkanPath}
. This should allow the Qt front end to detect Vulkan, though not able to use it for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugly as hell.
Change the default ppsspp package to SDL front end, as it supports
Vulkan, and is allowed to build the headless binary together.
Description of changes
New packages
ppsspp-sdl
ppsspp-sdl-wayland
Packages changed
ppsspp
now uses SDL front end, includes the headless binary, and supports Vulkanppsspp
with Qt front end is renamed toppsspp-qt
Additional notes
ppsspp-sdl-wayland
. See [Wayland] Blank window with Vulkan backend hrydgard/ppsspp#13845Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes