nixpkgs/pkgs/os-specific/linux/systemd
sternenseemann 1ee0f4c2aa systemd: fix evaluation in pkgsCross.ghcjs.buildPackages
GHC's js backend depends on systemd via emscripten via closure compiler
via jdk via cups. Before it fails to evaluate, though, since
llvmPackages looks into `targetPackages.stdenv.cc` to determine which
C++ library to use (something that should be rectified in the future).
[Unfortunately], for `pkgsCross.ghcjs`, `stdenv.cc` throws which blows
up evaluating `pkgsCross.buildPackages.llvmPackages.clang`.

This is in principle unnecessary. We want to build
`pkgsCross.ghcjs.buildPackages.haskell.compiler.native-bignum.ghcHEAD`
which depends on `pkgsCross.ghcjs.buildPackages.systemd` which needs
clang and friends only in `nativeBuildInputs`, so
`pkgsCross.ghcjs.buildPackages.buildPackages.llvmPackages.clang`.
Unfortunately, due to the nature of splicing, we first evaluate the
“adjacent” derivation before we can access the spliced derivation we are
actually interested in. If the former
fails (`pkgsCross.ghcjs.buildPackages.llvmPackages.clang`), we can't do
the latter.

The solution is to just not rely on splicing in this case and take
`buildPackages.llvmPackages.clang` directly (relative to
`buildPackages.systemd` in this case!) which avoids the whole problem.

[Unfortunately]: c739c420db (diff-3209527bd27cbc775f579b1e295b0264c850859c7245d526965cec456b8c70a4R61)
2023-01-03 22:19:59 +01:00
..
0001-Start-device-units-for-uninitialised-encrypted-devic.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0002-Don-t-try-to-unmount-nix-or-nix-store.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0003-Fix-NixOS-containers.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0004-Look-for-fsck-in-the-right-place.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0005-Add-some-NixOS-specific-unit-directories.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0006-Get-rid-of-a-useless-message-in-user-sessions.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0007-hostnamed-localed-timedated-disable-methods-that-cha.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0008-Fix-hwdb-paths.patch nixos/systemd: make sure all the device nodes are created in stage1 2022-07-22 10:01:21 +03:00
0009-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0010-localectl-use-etc-X11-xkb-for-list-x11.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0011-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0012-add-rootprefix-to-lookup-dir-paths.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0013-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0014-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0015-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0016-pkg-config-derive-prefix-from-prefix.patch nixos/systemd: make sure all the device nodes are created in stage1 2022-07-22 10:01:21 +03:00
0017-inherit-systemd-environment-when-calling-generators.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
0018-core-don-t-taint-on-unmerged-usr.patch systemd: 251.8 -> 252.1 2022-11-16 23:38:25 -05:00
default.nix systemd: fix evaluation in pkgsCross.ghcjs.buildPackages 2023-01-03 22:19:59 +01:00