haskell.nix/overlays/gobject-introspection.nix
Hamish Mackenzie 6134e66e1d
Fix ghc 8.10 windows cross (boot with 8.6.5) (#865)
It looks like we can't use 8.8 for booting due to
https://gitlab.haskell.org/ghc/ghc/-/issues/18143

* Adds nixpkgs 20.09 to get mingw-w64 version 6
  (also needed for ghc 8.10 windows cross compile)

* Add materialization for ghc 8.10.2 windows cross

* Fix issue with harfbuzz override so it works with nixpkgs 20.09

* Fixes eval time issue for windows index-state test (turns off native-dns cabal flag for windows)

* Include exe extension for windows in coverage test

lib:ghc is still broken for ghc 8.10 (all variants), but it always has been and we should try to fix it properly, but it will be very tricky.
2020-10-07 15:42:32 +13:00

10 lines
524 B
Nix

# haskell-gi packages need gobject-introspection turned on
final: prev: {
# As of nixpkgs 20.09 harfbuzz is built with mesonFlags and hopefully includes
# gobject introspection correctly. Older nixpkgs will have configureFlags to update.
harfbuzz = prev.harfbuzz.overrideAttrs (attr: final.lib.optionalAttrs (attr ? configureFlags) {
configureFlags = attr.configureFlags ++ [ "--enable-introspection=yes" "--with-gobject=yes" ];
buildInputs = attr.buildInputs ++ [ final.pkgs.gobject-introspection ];
});
}