Reverts NixOS/nixpkgs#269620
- eab0837b68 caused a mass-rebuild on master
- self-merge on a critical package without review and not waiting for the active owner team
Below are the reverts of the commits from that PR
Revert "systemd: migrate to by-name"
This reverts commit 33d2a40d67.
Revert "systemd: add meta.longDescription"
This reverts commit 7c588d141d.
Revert "systemd: cosmetic rewording of code"
This reverts commit d91b8d9fcb.
Revert "systemd: cosmetic rewording of comments"
This reverts commit bc563998c0.
Revert "systemd: remove some redundancy on mesonFlags"
This reverts commit eab0837b68.
Revert "systemd: use lib.meson* functions"
This reverts commit 1129756b1a.
systemdMinimal is used to break the dependency cycle of libraries
required by systemd on itself. The problem is that this means that
every system closure will have two sets of systemd binaries in the
closure. This wastes around 10 MiB in every system closure.
Add the option to systemd to only ship libudev and libsystemd instead
of a whole systemd installation.
If EFI is disabled, either because it is not available on the platform or
because the user has manually disabled it, automatically disable building
systemd-boot. The "withBootloader -> withEfi" assertion is maintained in
case someone manually tries to enable the bootloader without EFI support.
This fixes evaluation on platforms without EFI support.
Even though kernel-install was rewritten in C and is thus not a script
anymore that needs to be patched, there are still .install scripts in
the kernel-install directory that need to be patchd.
This fixes notably the fact that /dev/zfs was not usable anymore as a user,
and potentially other things.
Tracked in systemd upstream under issue number 28653, 28765.
This is an early preparation for systemd v254 which causes some patch reflows
and EFI-related cleanups to their new build system with elf2efi, requiring pyelftools
as a Python packge.
Build logs show:
> configure: WARNING: non-linux system; not building mount
> configure: WARNING: non-linux system; not building swapon
So skip these on non-Linux
Using getOutput prevents eval failures on other platforms.
Things should stay eval'able with NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1
Co-authored-by: Artturin <Artturin@artturin.com>