|
|
|
@ -168,13 +168,23 @@ stdenv.mkDerivation { |
|
|
|
|
# need (AFAICT). |
|
|
|
|
# See https://github.com/systemd/systemd/pull/20479 for upsteam discussion. |
|
|
|
|
./0019-core-handle-lookup-paths-being-symlinks.patch |
|
|
|
|
] ++ lib.optional stdenv.hostPlatform.isMusl (let |
|
|
|
|
|
|
|
|
|
# In v248 compiler weirdness and refactoring lead to the bootloader |
|
|
|
|
# erroring out handling keyboard input on some systems. See |
|
|
|
|
# https://github.com/systemd/systemd/issues/19191 |
|
|
|
|
# This should be redundant in v249.6 when it offically gets tagged in |
|
|
|
|
# systemd-stable |
|
|
|
|
./0020-sd-boot-Unify-error-handling.patch |
|
|
|
|
./0021-sd-boot-Rework-console-input-handling.patch |
|
|
|
|
] ++ lib.optional stdenv.hostPlatform.isMusl ( |
|
|
|
|
let |
|
|
|
|
oe-core = fetchzip { |
|
|
|
|
url = "https://git.openembedded.org/openembedded-core/snapshot/openembedded-core-14c6e5a4b72d0e4665279158a0740dd1dc21f72f.tar.bz2"; |
|
|
|
|
sha256 = "1jixya4czkr5p5rdcw3d6ips8zzr82dvnanvzvgjh67730scflya"; |
|
|
|
|
}; |
|
|
|
|
musl-patches = oe-core + "/meta/recipes-core/systemd/systemd"; |
|
|
|
|
in [ |
|
|
|
|
in |
|
|
|
|
[ |
|
|
|
|
(musl-patches + "/0002-don-t-use-glibc-specific-qsort_r.patch") |
|
|
|
|
(musl-patches + "/0003-missing_type.h-add-__compare_fn_t-and-comparison_fn_.patch") |
|
|
|
|
(musl-patches + "/0004-add-fallback-parse_printf_format-implementation.patch") |
|
|
|
@ -201,7 +211,8 @@ stdenv.mkDerivation { |
|
|
|
|
|
|
|
|
|
# Being discussed upstream: https://lists.openembedded.org/g/openembedded-core/topic/86411771#157056 |
|
|
|
|
./musl.diff |
|
|
|
|
]); |
|
|
|
|
] |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
postPatch = '' |
|
|
|
|
substituteInPlace src/basic/path-util.h --replace "@defaultPathNormal@" "${placeholder "out"}/bin/" |
|
|
|
@ -575,6 +586,12 @@ stdenv.mkDerivation { |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
postInstall = '' |
|
|
|
|
# sysinit.target: Don't depend on |
|
|
|
|
# systemd-tmpfiles-setup.service. This interferes with NixOps's |
|
|
|
|
# send-keys feature (since sshd.service depends indirectly on |
|
|
|
|
# sysinit.target). |
|
|
|
|
mv $out/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service $out/lib/systemd/system/multi-user.target.wants/ |
|
|
|
|
|
|
|
|
|
mkdir -p $out/example/systemd |
|
|
|
|
mv $out/lib/{modules-load.d,binfmt.d,sysctl.d,tmpfiles.d} $out/example |
|
|
|
|
mv $out/lib/systemd/{system,user} $out/example/systemd |
|
|
|
|