-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Reduce closure gnome-shell closure #77835
Conversation
for pc in $dev/lib/pkgconfig/*; do | ||
substituteInPlace $pc \ | ||
--replace "$out/include" "$dev/include" | ||
done |
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.
Doesn't the multiple outputs setup hook do this?
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.
Looks like that only works on lines starting with includedir=
, but the gtkd pc files doesn't have any variables unfortunately.
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.
Ah right, so it's cflags
and libs
.
Can you comment this? I believe in the past gtkd's .pc files have gone through some problematic issues.
Aside from the other comments, this should be harmless. |
368ddf1
to
12c4b64
Compare
12c4b64
to
0e6a290
Compare
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.
LGTM
As soon as we have structured outputs, we can disallow references per output NixOS/nix@3cd15c5 and #49417 |
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've built the relevant packages on staging (including gnome-shell)
NP, merging 👍
Also verified the closure size is reduced as reported. |
Reduce closure gnome-shell closure (cherry picked from commit c8c87f6)
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Motivation for this change
Things done
Adds a dev output to a few gnome-shell dependencies (and gtkd), preventing their propagated build inputs becoming part of eg. gnome-shell's closure. Specifically reduces gnome-shell's closure size from 1.6GB to 1.1GB.
It seems like it's very common for derivations to specify propagated build inputs without having an extra output, so there's probably some really low hanging fruits here. (Might honestly be good for the propagated-build-inputs files to get a dedicated output which is automatically added?).
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)