-
-
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
nixos/waybar: use upstream service file #242728
Conversation
Result of 2 packages blacklisted:
1 package built:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/2441 |
3d27246
to
2869aad
Compare
7c040b8
to
8be1870
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/2781 |
8be1870
to
4e238a9
Compare
4e238a9
to
bfe25ca
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/4149 |
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 good, thanks!
Result of nixpkgs-review pr 242728
run on x86_64-linux 1
2 packages blacklisted:
- nixos-install-tools
- tests.nixos-functions.nixos-test
1 package built:
- waybar
@@ -163,13 +166,15 @@ stdenv.mkDerivation (finalAttrs: { | |||
"pulseaudio" = pulseSupport; | |||
"rfkill" = rfkillSupport; | |||
"sndio" = sndioSupport; | |||
"systemd" = false; | |||
"systemd" = true; |
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.
should probably follow the same theme as the other flags if someone wants to build without systemd dependency
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.
This option only enables copying waybar.service
to the correct location (PKG_CONFIG_SYSTEMD_SYSTEMDUSERUNITDIR
) during the build, nothing else.
The result waybar binary remains identical as the systemd dependency is never used at runtime, so I don't really see a need to allow disabling it. I even believe a systemdSupport
option would actually confuse people by making them think the waybar binary can depend on and use the systemd dependency at runtime.
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.
That's what buildInputs
(i.e. depsHostTarget
) implies, that it's a runtime linkage.
If it's not used at runtime why would it be there?
bfe25ca
to
ba0f895
Compare
Description of changes
Use the more complete upstream waybar.service file instead of manually re-implementing it.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)