Repository navigation
sdl3-image: add option to disable stb and modernize - #400078
Conversation
|
I think we should avoid changing upstream configuration when it's not required since this may cause issues if some dependent package relies on STB backend being used. IMO we should add a parameter like |
|
I disagree with the "more security" take here: |
|
yeah that makes sense. i will change that |
8a9251a to
d5afef5
Compare
GrimmTheShrimp
left a comment
There was a problem hiding this comment.
Thanks for adding the option :)
|
I'm considering adding a passthru update script since it uses github. but I'm gonna read into that tmrw and would prbly add that in a separate pull request. |
GrimmTheShrimp
left a comment
There was a problem hiding this comment.
Thanks
For update script, if you want to:
passthru.updateScript = nix-update-script { };|
You'll need to use a version regex to avoid picking up 2.x releases: passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"release-(3\\..*)"
];
}; |
|
thx @marcin-serwin. am pretty busy rn. so this is gonna wait till tmrw or later this evening.
|
|
i believe |
|
ic. it's a bit difficult to get a grasp of what is considered good practice around nixpkgs. |
I absolutely agree, and the relevant issue about that is #387072 Until that settles, the best we can do is try to imitate what everyone else does. Sorry, this is indeed confusing, you are doing well! |
|
think I'm content now with the package. |
|
|
darwin error: it builds fine on master (https://hydra.nixos.org/build/294924456), meaning there is a breakage here |
|
That is surprising, no change made ehre should affect darwin specifically? |
|
Actually, there might be some extra hints in the cmake: But probably not, we are setting imageio... |
|
what happens if you build with |
|
This failure occurs when testing |
b2d47e4 to
c705d86
Compare
|
i rebased to master to see if that fixes the issue |
|
I've been playing around with nixpkgs-review-gha macOS runner (aarch64-darwin) and I've noticed the following
Based on these I suspect that there is some impurity in |
|
thanks for looking into that. could you open an issue for that? since you already tested around. as for this pr, I'd appreciate it being merged nonetheless, since the issue is not caused by the pr. especially because I'd like to backport sdl3-image with the changes in this pr into stable. |
|
i have a macbook and will try to repreduce the issue on x86_64-darwin |
|
Trying to build Similarly, building libavif: I'll second the request to just merge this and figure out the darwin brokenness some other way. @GaetanLepage pinging you, you seem to have a lot of fun with broken darwin builds and you were also touching sdl-adjacent things recently. |
|
|
#400078 (comment) to me indicates that the imageio backend depends on some impure library from the macOS install, which explains why the pinning tests break on some hosts but not all. If the build passes on hydra then this sounds like a problem for upstream. |
|
... and it passed on x86_64-darwin ofborg |
|
yey ^^ thx a lot for everyone who helped me here. @marcin-serwin @LordGrimmauld @pbsds |
I indeed had a lot of fun with that. I'm afraid I can't tell you much more about this... |
|
All good, just figured if anyone had an idea then you. If this is just spooky and accepted as spooky, thats fine by me too. |
Resolves #400074
Things done
Disabled stbi and added libpng and libjpeg to build deps.
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.