Many packages have some kind of flag indicating whether or not to build with
systemd support. Most of these default to `stdenv.isLinux`, but systemd does
not build on (and is marked `broken` for) `isStatic`. Only a few packages have
the needed `&& !isStatic` in the default value for their parameter.
This commit moves the logic for the default value of these flags into
`systemd.meta.{platforms,badPlatforms}` and evaluates those conditions using
`lib.meta.availableOn`.
This provides three benefits:
1. The default values are set correctly (i.e. including `&& isStatic`)
2. The default values are set consistently
3. The way is paved for any future non-Linux systemd platforms (FreeBSD is
reported to have experimental systemd support)
- Use absolute paths to logger and udev.
- Pass the absolute path to the brltty binary to the wrapper.
- Include generic USB devices in udev rules.
- Remove pulse-access group from systemd unit and sysusers.
Semi-automatic update. These checks were performed:
- built on NixOS
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty-ctb -h` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty-ctb --help` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty -h` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty --help` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty help` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty -V` and found version 5.6
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty -v` and found version 5.6
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty --version` and found version 5.6
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty version` and found version 5.6
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty -h` and found version 5.6
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty --help` and found version 5.6
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty help` and found version 5.6
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty-trtxt -h` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty-trtxt --help` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty-ttb -h` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty-ttb --help` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty-atb -h` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty-atb --help` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty-ktb -h` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty-ktb --help` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty-tune -h` got 0 exit code
- ran `/nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6/bin/brltty-tune --help` got 0 exit code
- found 5.6 with grep in /nix/store/4zz86z1wi6k5nny7wiyqngpm8d94k9r7-brltty-5.6