···1-Make sure that the appropriate feature flags are set when
2-Rts.h is included, so that clockid_t is defined.
3-4-diff --git a/cbits/is-valid-utf8.c b/cbits/is-valid-utf8.c
5-index 01b3b41..c69596a 100644
6---- a/libraries/bytestring/cbits/is-valid-utf8.c
7-+++ b/libraries/bytestring/cbits/is-valid-utf8.c
8-@@ -29,6 +29,7 @@ SUCH DAMAGE.
9- */
10- #pragma GCC push_options
11- #pragma GCC optimize("-O2")
12-+#include "rts/PosixSource.h"
13- #include <stdbool.h>
14- #include <stddef.h>
15- #include <stdint.h>
···000000000000000
-6
pkgs/development/compilers/ghc/9.4.7.nix
···1-# DO NOT port this expression to hadrian. It is not possible to build a GHC
2-# cross compiler with 9.4.* and hadrian.
3-import ./common-make-native-bignum.nix {
4- version = "9.4.7";
5- sha256 = "06775a52b4d13ac09edc6dabc299fd11e59d8886bbcae450af367baee2684c8f";
6-}
···410 })
411 ]
412413- ++ lib.optionals (version == "9.4.6") [
414- # Work around a type not being defined when including Rts.h in bytestring's cbits
415- # due to missing feature macros. See https://gitlab.haskell.org/ghc/ghc/-/issues/23810.
416- ./9.4.6-bytestring-posix-source.patch
417- ]
418-419 ++ lib.optionals (stdenv.targetPlatform.isDarwin && stdenv.targetPlatform.isAarch64) [
420 # Prevent the paths module from emitting symbols that we don't use
421 # when building with separate outputs.
···410 })
411 ]
412000000413 ++ lib.optionals (stdenv.targetPlatform.isDarwin && stdenv.targetPlatform.isAarch64) [
414 # Prevent the paths module from emitting symbols that we don't use
415 # when building with separate outputs.