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 enableStatic argument #42380
Conversation
cc @orivej @matthewbauer @xeji |
pkgs/top-level/all-packages.nix
Outdated
@@ -10708,6 +10708,10 @@ with pkgs; | |||
''; | |||
}; | |||
|
|||
libxml2Static = appendToName "static" (libxml2.override { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to leave this out of all-packages.nix and just have people override it in their own configs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, we typically build only a single version of a package.
Success on x86_64-linux (full log) Attempted: libxml2Static Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: libxml2Static Partial log (click to expand)
|
If `enableStatic` is set to true, the output `static` contains the static library.
Success on x86_64-linux (full log) Attempted: libxml2 Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: libxml2 Partial log (click to expand)
|
I've removed the This PR is a first step which is nice, but in the case of this library, I think it would be better to always build the |
I'm not sure about the best way to add static libraries to Nixpkgs… This PR is OK, but I would have also approved it if it did not move the static library into the |
libxml2Static is built by overriding the enableStatic attribute of
libxml2.
Motivation for this change
Bring static version
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)