nixpkgs-suyu/pkgs
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
..
applications Merge pull request #208255 from sarcasticadmin/rh/1672308083ax25apps 2023-01-02 23:59:56 +01:00
build-support Merge pull request #208358 from Artturin/makepkgconfigitemfixcross 2022-12-30 15:19:01 +02:00
common-updater
data Merge master into haskell-updates 2023-01-03 00:12:24 +00:00
desktops Merge pull request #207715 from jtojnar/gnome-debug 2023-01-02 06:40:46 +01:00
development haskell.compiler.ghcHEAD: 9.5.20220921 -> 9.7.20221224 2023-01-03 15:23:53 +01:00
games quakespasm: 0.95.0 -> 0.95.1 2023-01-02 21:24:09 +08:00
misc wiki-tui: add changelog to meta 2023-01-01 18:34:59 +01:00
os-specific systemd: fix evaluation in pkgsCross.ghcjs.buildPackages 2023-01-03 22:19:59 +01:00
pkgs-lib
servers Merge pull request #208609 from LeSuisse/redis-7.0.7 2023-01-03 00:29:33 +01:00
shells Merge pull request #207224 from ncfavier/nix-bash-completions 2023-01-01 10:43:13 +01:00
stdenv Merge pull request #208478 from trofi/comment-stdenv-bootstrap 2023-01-02 17:28:43 -05:00
test
tools Merge pull request #208807 from qowoz/yt-dlp 2023-01-03 00:02:08 +01:00
top-level Merge pull request #208255 from sarcasticadmin/rh/1672308083ax25apps 2023-01-02 23:59:56 +01:00