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
mpd: 0.20.13 -> 0.21.16 #57608
mpd: 0.20.13 -> 0.21.16 #57608
Conversation
The first commit removes the |
@GrahamcOfBorg build mpd |
Added an alternative
|
This derivation outputs a directory |
I suggest this change about above issue and a new flag for better compatibility (I have no opinion whether syslog should be in the list of features or not, but it should definitely be supported) 118a119
> ++ [ "-Dsyslog=enabled" ]
122c123
< "-Dsystemd_system_unit_dir=$(out)/etc/systemd/system";
---
> "-Dsystemd_system_unit_dir=etc/systemd/system"; Also, 0.21.7 is released now |
Thanks, fixed the path and updated to 0.21.8. |
@tobim: no, the choice is only between syslog and /var/log, so the feature should definitely be switchable in the configuration like the over features available in the derivation |
|
@GrahamcOfBorg build mpd mpd-small nixosTests.mpd |
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 refactor looks pretty neat to me! A few comments below, though
@Ekleog ping (triage) |
@aanderse I don't particularly know mpd (or even use it myself), just came across this PR while doing triage too. All the comments I could find have been addressed, but I don't feel ready to merge unless someone else reviews it, as it's a pretty big refactor of a derivation for a package I know basically nothing about :) |
|
Updated to 0.21.11 and rebased. |
Also use pname instead of name.
- Expose run function as mpdWithFeatures. - Throw on invalid feature requests. - Drop major/minor version variables. - Cosmetic improvements.
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.
So I haven't commented so far because I'm not a big fan of changing these feature flags because it breaks peoples' nix expressions. It would be nice if there was a standard we would follow but currently there isn't.
Since you're obviously committed and keen on maintaining mpd - more so than the old maintainers - I see no real reason why we shouldn't merge this now. Thanks a lot for your work on this!
As someone who is currently maintaining a branch/patchset that adds a feature to mpd, this would be nice, particularly if it also enabled some way to add to the list via overrides. |
Also fixed the mpd NixOS test (which was broken even before this PR): 4d9899e |
* Refactor mpd * mpd: 0.20.13 -> 0.21.5 Switch to meson based build, following upstream. * Fix mpd on darwin * mpd: 0.21.5 -> 0.21.6 * mpd-small: init add 0.21.6 * Update to 0.21.8 & fix ouput path Also use pname instead of name. * Update to 0.21.9 * Integrate review suggestions - Expose run function as mpdWithFeatures. - Throw on invalid feature requests. - Drop major/minor version variables. - Cosmetic improvements. * Update to 0.21.10 * mpd: 0.21.10 -> 0.21.11 * mpd: 0.21.11 -> 0.21.12 * mpd: log to journal * mpd: 0.21.12 -> 0.21.14 * mpd: add tobim to maintainers * mpd: reenable syslog support * mpd: 0.21.14 -> 0.21.15 * mpd: 0.21.15 -> 0.21.16 (cherry picked from commit 4a9d549)
MPD is using syslog for its logging output, while it could directly log to systemd's journal, as this daemon is primarily used as a systemd user service. This change makes MPD log to standard output, which is captured by systemd. See NixOS/nixpkgs#57608, which does the same thing to NixOS's MPD service.
MPD is using syslog for its logging output, while it could directly log to systemd's journal, as this daemon is primarily used as a systemd user service. This change makes MPD log to standard output, which is captured by systemd. See NixOS/nixpkgs#57608, which does the same thing to NixOS's MPD service.
Motivation for this change
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)