diff --git a/pkgs/development/compilers/ghc/common-hadrian.nix b/pkgs/development/compilers/ghc/common-hadrian.nix index e6d90a785c15..6449ec17eb0a 100644 --- a/pkgs/development/compilers/ghc/common-hadrian.nix +++ b/pkgs/development/compilers/ghc/common-hadrian.nix @@ -660,11 +660,17 @@ stdenv.mkDerivation ( depsTargetTarget = map lib.getDev (libDeps targetPlatform); depsTargetTargetPropagated = map (lib.getOutput "out") (libDeps targetPlatform); - hadrianFlags = [ - "--flavour=${ghcFlavour}" - "--bignum=${if enableNativeBignum then "native" else "gmp"}" - "--docs=${if enableDocs then "no-sphinx-pdfs" else "no-sphinx"}" - ]; + hadrianFlags = + [ + "--flavour=${ghcFlavour}" + "--bignum=${if enableNativeBignum then "native" else "gmp"}" + "--docs=${if enableDocs then "no-sphinx-pdfs" else "no-sphinx"}" + ] + ++ lib.optionals (lib.versionAtLeast version "9.8") [ + # In 9.14 this will be default with release flavour. + # See https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13444 + "--hash-unit-ids" + ]; buildPhase = '' runHook preBuild