phira{,-unwrapped,-free}: init at 0.6.7#426525
Conversation
|
Let's unfree. |
|
He didn't understand the question at first. He thought you were talking about some source codes. |
|
I added |
|
Could there be a bin package? Maybe we can replace the missing file with nixos logos. |
|
Unfortunately, their binary releases do not contain unfree features, either. Only the Android and iOS releases have unfree features. |
|
I suggest seperate the package and assests to prevent building on user's computer. |
Yeah I think replacing unfree assets with free assets to make the package free is a good idea, but NixOS logos may not be suitable for a background. I will figure this out after the upstream developers respond to the question about assets copyright issues. If the assets are unfree, I am thinking of having the package The names of the two packages may alternatively be |
pkgs/by-name/ph/phira/package.nix
Outdated
| makeWrapper $out/bin/phira-main $out/bin/phira \ | ||
| ${lib.optionalString stdenv.hostPlatform.isLinux "--suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libGL ]}"} \ | ||
| --run ' | ||
| export PHIRA_ROOT=''${PHIRA_ROOT-"$HOME/.local/share/phira"} |
There was a problem hiding this comment.
Don't think putting the logic here is a good one. And without it we can make use of makeBinaryWrapper which should be faster.
There was a problem hiding this comment.
I don't want to maintain a patch with too much logic. The performance impact from makeWrapper is very minimal.
|
I separated it into two packages |
|
I would like to put assets and downloaded files in different locations, but then I need to do some large refactoring of the code base. |
|
A desktop file is now added.
I added the package |
|
could you rebase and nixfmt? |
|
Thank you for reminding. I will do that tomorrow. |
There was a problem hiding this comment.
Would be nice to upstream this
There was a problem hiding this comment.
See TeamFlos/phira#573. It currently cannot be merged upstream because it breaks build on Windows.

I wrote a patch to make the game load assets from and download data to
~/.local/share/phirainstead of the installation dir (among other patches to fix the build). Currently it seems to work without flaw on Linux.The build on macOS cannot launch because the window creation with GL capabilities fails, but it can probably be due to I am testing in a VM (where I cannot seem to write some code myself to use GLFW to create a window, either). More testing is needed.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.