3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools
Adam Joseph 42815b4a0c treewide: systemdSupport: use lib.meta.availableOn
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)
2023-01-22 00:27:19 -08:00
..
admin Merge pull request #212002 from mothsART/feature/replace_http_by_https 2023-01-22 03:26:02 +01:00
archivers treewide: replace http by https when https is a permanent redirection 2023-01-22 02:46:49 +01:00
audio Merge pull request #212002 from mothsART/feature/replace_http_by_https 2023-01-22 03:26:02 +01:00
backup Merge pull request #180430 from r-ryantm/auto-update/bacula 2023-01-22 04:02:57 +01:00
bluetooth
bootloaders/refind
cd-dvd treewide: replace http by https when https is a permanent redirection 2023-01-22 02:46:49 +01:00
compression treewide: switch to nativeCheckInputs 2023-01-21 12:00:00 +00:00
filesystems Merge pull request #212002 from mothsART/feature/replace_http_by_https 2023-01-22 03:26:02 +01:00
games treewide: switch to nativeCheckInputs 2023-01-21 12:00:00 +00:00
graphics Merge pull request #211919 from r-ryantm/auto-update/astc-encoder 2023-01-22 07:57:33 +01:00
inputmethods treewide: switch to nativeCheckInputs 2023-01-21 12:00:00 +00:00
misc treewide: systemdSupport: use lib.meta.availableOn 2023-01-22 00:27:19 -08:00
networking treewide: systemdSupport: use lib.meta.availableOn 2023-01-22 00:27:19 -08:00
nix Merge pull request #211958 from figsoda/nixpkgs-hammering 2023-01-22 07:08:15 +01:00
package-management treewide: systemdSupport: use lib.meta.availableOn 2023-01-22 00:27:19 -08:00
security Merge pull request #211914 from r-ryantm/auto-update/minisign 2023-01-22 08:01:29 +01:00
system treewide: systemdSupport: use lib.meta.availableOn 2023-01-22 00:27:19 -08:00
text Merge pull request #212002 from mothsART/feature/replace_http_by_https 2023-01-22 03:26:02 +01:00
typesetting Merge pull request #212002 from mothsART/feature/replace_http_by_https 2023-01-22 03:26:02 +01:00
video treewide: replace http by https when https is a permanent redirection 2023-01-22 02:46:49 +01:00
virtualization treewide: switch to nativeCheckInputs 2023-01-21 12:00:00 +00:00
wayland Merge pull request #210921 from r-ryantm/auto-update/ydotool 2023-01-16 00:51:18 +01:00
X11 Merge pull request #212002 from mothsART/feature/replace_http_by_https 2023-01-22 03:26:02 +01:00