tauon: 7.9.0 -> 8.0.1#405753
Conversation
|
Eventually it to work with At least tauon seems to be happy and in a |
marcin-serwin
left a comment
There was a problem hiding this comment.
Thanks, it looks better now in my opinion. Just some minor changes.
There was a problem hiding this comment.
Could you add a comment above that explains the reason for this setupHook? Something like
| setupHook = ./setup-hook.sh; | |
| # PySDL3 downloads SDL binaries itself by default so we set env variables to make it use the ones from nixpkgs | |
| # See https://pysdl3.readthedocs.io/en/latest/install.html#the-environment-variable-method | |
| setupHook = ./setup-hook.sh; |
There was a problem hiding this comment.
| ""; | |
| throw "Unsupported system: ${stdenv.hostPlatform.system}"; |
|
(Oh right, dynamic libraries have different suffixes on different platforms) |
| docfile = fetchurl { | ||
| url = "https://github.com/Aermoss/PySDL3/releases/download/v${version}/${stdenv.hostPlatform.uname.system}-Docs.py"; | ||
| hash = "${dochash}"; | ||
| }; |
There was a problem hiding this comment.
rather than fetching this generated asset, please generate it in the derivation if possible. The procedure seems to be in https://github.com/Aermoss/PySDL3/blob/main/.github/workflows/generate_docs.yml.
If we do have to fetch it, then we should set meta.sourceProvenance accordingly.
There was a problem hiding this comment.
The generator attempts to first download the file from the github release so that would not really change anything. If downloading it from the github release fails, it starts scraping docs from libsdl.org which I'm also not a huge fan of (it mostly seems like a great way to get our CI machines IP blocked these days).
Ideally we'd generate the docs from our own SDL3 build. I was going to propose supporting that case to upstream but didn't manage to get nixpkgs SDL3 to generate its documentation...
There was a problem hiding this comment.
sounds like a big can of worms, i'm not against fetching it in the meanwhile 👍
There was a problem hiding this comment.
What shoud meta.sourceProvenance be set to in this case? binaryBytecode?
|
on darwin ofborg: |
|
On further inspection this seems to be a sdl3_ttf issue not pysdl3 issue, and i'm unable to recreate it on the darwin community builder indicating that the harfbuzz package is not guaranteed to be present on a given darwin machine |
|
I think the doc fetching needs to be patched |
That error message is referring to a different python version than on my machine. Can you check the directory structure of the result from |
|
Oh, i think the error was from nixpkgs-review populating the shell with multiple python versions of pysdl3 in PYTHONPATH. This is a known problem. Running it with only Likely the |
4d783cd to
180ffa2
Compare
|
If that's all then the good news is that we were wrapping the main entrypoint and stuffing things into LD_LIBRARY_PATH already so adding libXcursor is a minimal change. |
|
TIL that |
|
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.