-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
libxml2: add icu support #22649
libxml2: add icu support #22649
Conversation
@peterhoeg, thanks for your PR! By analyzing the history of the files in this pull request, we identified @vcunat, @edolstra and @FRidh to be potential reviewers. |
This seems to more than double the closure size of both the |
Good point @FRidh. So what exactly is the policy about what dependencies should be included? Any sort of best practice? |
Well, the Nixpkgs manual only mentions multiple outputs, but that won't help us here. If someone needs Please rebase your work to staging. |
I think the best practice is here, put in only what you need, and
everything else is optional.
It's always a trade-off between size and functionality. If we could do
something like a list of libraries that should always be included by
other packages, that would remove some ambiguity.
If someone needs xmllint with ICU support they can build a version of
libxml2 that has it. Therefore I suggest you make it an optional feature.
Sure.
Please rebase your work to staging.
Sure, why?
|
Shouldn't actually be necessary, but that was just to be sure we won't get a mass-rebuild (on master) even when ICU is off by default. |
Nice catch @FRidh! Indeed, the changed order of the buildinputs was enough to cause a massive rebuild. I managed to massage it into submission (at least according to |
Do we have some idea about the use cases for ICU in there? /cc @fubarbaz. |
Yes, at least default for use in nixpkgs, from what I know so far. The ICU data are rather large. For installing the preference might be different. I wonder whether to provide at least an explicit attribute, to allow easier usage and provide binaries. |
@vcunat we could add a |
This causes no rebuilds by default.
This causes no rebuilds by default. Fixes NixOS#22623, kind of. (cherry picked from commit db8ac61)
Motivation for this change
Fixes #22623
Causes a massive rebuild.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)