Skip to content
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

ryujinx: init at 1.0.5160 #94329

Merged
merged 1 commit into from Aug 10, 2020
Merged

ryujinx: init at 1.0.5160 #94329

merged 1 commit into from Aug 10, 2020

Conversation

IvarWithoutBones
Copy link
Member

@IvarWithoutBones IvarWithoutBones commented Jul 31, 2020

Motivation for this change

Adds Ryujinx, a Nintendo Switch emulator written in C#.

This is my first time doing any dotnet packaging, so I've mainly based this off of osu-lazer.

The update script for that uses some checks to see if it already has the latest dependencies (for the deps.nix), however i could not get that to work here as there are no stable builds.

Upstream does not have stable releases, however dotnet fails when using the regular unstable-${date} version convention for git revs. The current versioning is based off of the official appveyor builds.

Ryujinx normally tries to write logs next to the executable, so to the nix store. I've added a patch which just puts those in the directory you're launching it from.

Edit: Patch now writes logs to ~/.config/Ryujinx/Logs/ on Linux, and the appropriate directory on other platforms as well.

Closes: #85684

image

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

runHook postBuild
'';

installPhase = ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getting wrapped 3 times

Suggested change
installPhase = ''
dontWrapGApps = true;
installPhase = ''

pkgs/misc/emulators/ryujinx/default.nix Outdated Show resolved Hide resolved
pkgs/misc/emulators/ryujinx/default.nix Outdated Show resolved Hide resolved
@IvarWithoutBones
Copy link
Member Author

With all of those suggestions added, the app fails to open the file picker:

(Ryujinx:32583): GLib-GIO-ERROR **: 18:04:21.525: No GSettings schemas are installed on the system
zsh: abort (core dumped)  ./result/bin/Ryujinx

Not using dontWrapGApps seems to fix this, so I've kept that as is.

@IvarWithoutBones IvarWithoutBones changed the title ryujinx: init at 1.0.5094 ryujinx: init at 1.0.5160 Aug 10, 2020
@jonringer
Copy link
Contributor

(Ryujinx:32583): GLib-GIO-ERROR **: 18:04:21.525: No GSettings schemas are installed on the system
zsh: abort (core dumped) ./result/bin/Ryujinx

oh, may need to have glib in buildInputs for that to work

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Result of nixpkgs-review pr 94329 1

18 packages marked as broken and skipped: - linuxPackages_hardkernel_4_14.prl-tools - linuxPackages_hardkernel_4_14.r8125 - linuxPackages_hardkernel_4_14.r8168 - linuxPackages_hardkernel_4_14.rtl8814au - linuxPackages_hardkernel_4_14.rtl8821au - linuxPackages_hardkernel_4_14.rtl8821ce - linuxPackages_hardkernel_4_14.rtl88x2bu - linuxPackages_hardkernel_4_14.rtl88xxau-aircrack - linuxPackages_hardkernel_4_14.rtlwifi_new - php72Packages.phpmd - php74Extensions.zmq - python27Packages.habanero - python27Packages.handout - python27Packages.hass-nabucasa - python37Packages.notify - python37Packages.pyblock - python38Packages.notify - qes
1 package built: - ryujinx

@jonringer jonringer merged commit 2e2f87d into NixOS:master Aug 10, 2020
@IvarWithoutBones IvarWithoutBones deleted the ryujinx branch August 11, 2020 11:35
@JoshuaFern
Copy link
Member

Thanks to both of you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

package request: Ryujinx
3 participants