-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
{llvm,clang}-{4,5}: don't rebuild entire projects just to get manpages #33948
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
Conversation
:-)
EDIT: it probably doesn't much matter, as people aren't likely to use it without llvm itself... |
Much cheaper to build this way. Also this gives them a different name to avoid confusion and clutter when using `nix-env -qaP` or similar.
fa63a42
to
514f67e
Compare
@vcunat haha whoops, fixed! |
@@ -20,7 +20,7 @@ let | |||
# Add man output without introducing extra dependencies. | |||
overrideManOutput = drv: | |||
let drv-manpages = drv.override { enableManpages = true; }; in | |||
drv // { man = drv-manpages.man; /*outputs = drv.outputs ++ ["man"];*/ }; | |||
drv // { man = drv-manpages.out; /*outputs = drv.outputs ++ ["man"];*/ }; |
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.
Is this still necessary?
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.
It's less painful, as the pages are relatively cheap to build. I suppose it can be useful for uniformity (e.g. programs.man.enable
in configuration.nix
).
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 believe so, unfortunately :P. While this makes the manpages much cheaper to build and have a tiny runtime closure, the build-time dependencies are still numerous but most problematically is that they include things like Sphinx (python package) that shouldn't force Darwin rebuilds.
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.
BTW, the build-time closure of man pages could be cut down, somewhat, but probably not too much.
Ping! |
Please rebase to resolve conflicts. |
The conflict was trivial (syntactic). |
Don't rebuild entire projects just to get manpages.
#33369 (comment)
Also give manpage derivations different names so that they
don't clutter up
nix-env -qaP
and such.Doesn't change hash for current llvm/clang-unwrapped,
hopefully avoids mass-rebuild on Darwin.
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)