mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
1ee0f4c2aa
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]:
|
||
---|---|---|
.. | ||
0001-Start-device-units-for-uninitialised-encrypted-devic.patch | ||
0002-Don-t-try-to-unmount-nix-or-nix-store.patch | ||
0003-Fix-NixOS-containers.patch | ||
0004-Look-for-fsck-in-the-right-place.patch | ||
0005-Add-some-NixOS-specific-unit-directories.patch | ||
0006-Get-rid-of-a-useless-message-in-user-sessions.patch | ||
0007-hostnamed-localed-timedated-disable-methods-that-cha.patch | ||
0008-Fix-hwdb-paths.patch | ||
0009-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch | ||
0010-localectl-use-etc-X11-xkb-for-list-x11.patch | ||
0011-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch | ||
0012-add-rootprefix-to-lookup-dir-paths.patch | ||
0013-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch | ||
0014-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch | ||
0015-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch | ||
0016-pkg-config-derive-prefix-from-prefix.patch | ||
0017-inherit-systemd-environment-when-calling-generators.patch | ||
0018-core-don-t-taint-on-unmerged-usr.patch | ||
default.nix |