···11-Make sure that the appropriate feature flags are set when
22-Rts.h is included, so that clockid_t is defined.
33-44-diff --git a/cbits/is-valid-utf8.c b/cbits/is-valid-utf8.c
55-index 01b3b41..c69596a 100644
66---- a/libraries/bytestring/cbits/is-valid-utf8.c
77-+++ b/libraries/bytestring/cbits/is-valid-utf8.c
88-@@ -29,6 +29,7 @@ SUCH DAMAGE.
99- */
1010- #pragma GCC push_options
1111- #pragma GCC optimize("-O2")
1212-+#include "rts/PosixSource.h"
1313- #include <stdbool.h>
1414- #include <stddef.h>
1515- #include <stdint.h>
-6
pkgs/development/compilers/ghc/9.4.7.nix
···11-# DO NOT port this expression to hadrian. It is not possible to build a GHC
22-# cross compiler with 9.4.* and hadrian.
33-import ./common-make-native-bignum.nix {
44- version = "9.4.7";
55- sha256 = "06775a52b4d13ac09edc6dabc299fd11e59d8886bbcae450af367baee2684c8f";
66-}
···410410 })
411411 ]
412412413413- ++ lib.optionals (version == "9.4.6") [
414414- # Work around a type not being defined when including Rts.h in bytestring's cbits
415415- # due to missing feature macros. See https://gitlab.haskell.org/ghc/ghc/-/issues/23810.
416416- ./9.4.6-bytestring-posix-source.patch
417417- ]
418418-419413 ++ lib.optionals (stdenv.targetPlatform.isDarwin && stdenv.targetPlatform.isAarch64) [
420414 # Prevent the paths module from emitting symbols that we don't use
421415 # when building with separate outputs.