tree-sitter: fix pkgsStatic build#443375
Conversation
|
|
Hmmm, I just saw this PR upstream https://github.com/tree-sitter/tree-sitter/pull/4847/files which we should probably use instead 😓 |
|
Agreed that we should be using the upstream solution, however that PR still tries to install the .so AND .a files inside I meant to create a follow-up PR upstream, but I never got around to it. |
|
I dont mind merging this if sandro agrees. It can be reverted once upstream adapts. Let us know what you prefer neko-chan ;) |
|
Successfully created backport PR for |
|
Thanks for merging and sorry for not getting back to you, I wasn't able to make much time for nixpkgs this week. I'm hoping I can upstream a proper solution for this sometime over the weekend. |
|
Upstreaming can take time, it's not a problem to carry a small patch if it helps more people contribute to tree-sitter in nixpkgs. Thank you once again. |
|
Successfully created backport PR for |
|
Successfully created backport PR for |
The upstream Makefile assumes that shared objects are being built, so I needed to adjust the install step a bit.
The
postInstallis related to #443365, when building with a statichostPlatform(e.g.pkgsStatic), thermfails because the.sofile doesn't exist.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.