From fc1548e5975096996dd253b2e3f368a2ddb7326d Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Thu, 16 Jun 2022 15:04:26 -0700 Subject: [PATCH] ghc8.10.7-ghc9.2.3: hyperlink sources in base lib haddocks This was disabled basically by accident before. The links are jacked, but that was is true for every package; it is not unique to this PR. I fixed it upstream here: https://github.com/haskell/haddock/pull/1482 but it's not in any release distributions yet I don't think. Fixes #171841 --- pkgs/development/compilers/ghc/8.10.7.nix | 3 +++ pkgs/development/compilers/ghc/9.0.2.nix | 3 +++ pkgs/development/compilers/ghc/9.2.3.nix | 3 +++ 3 files changed, 9 insertions(+) diff --git a/pkgs/development/compilers/ghc/8.10.7.nix b/pkgs/development/compilers/ghc/8.10.7.nix index 981dfee88b86..e2cd496640f1 100644 --- a/pkgs/development/compilers/ghc/8.10.7.nix +++ b/pkgs/development/compilers/ghc/8.10.7.nix @@ -96,6 +96,9 @@ let # build the haddock program (removing the `enableHaddockProgram` option). '' HADDOCK_DOCS = ${if enableHaddockProgram then "YES" else "NO"} + # Build haddocks for boot packages with hyperlinking + EXTRA_HADDOCK_OPTS += --hyperlinked-source --quickjump + DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"} INTEGER_LIBRARY = ${if enableIntegerSimple then "integer-simple" else "integer-gmp"} '' + lib.optionalString (targetPlatform != hostPlatform) '' diff --git a/pkgs/development/compilers/ghc/9.0.2.nix b/pkgs/development/compilers/ghc/9.0.2.nix index 7b3f213ed333..b998176af974 100644 --- a/pkgs/development/compilers/ghc/9.0.2.nix +++ b/pkgs/development/compilers/ghc/9.0.2.nix @@ -99,6 +99,9 @@ let # build the haddock program (removing the `enableHaddockProgram` option). '' HADDOCK_DOCS = ${if enableHaddockProgram then "YES" else "NO"} + # Build haddocks for boot packages with hyperlinking + EXTRA_HADDOCK_OPTS += --hyperlinked-source --quickjump + DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"} BIGNUM_BACKEND = ${if enableNativeBignum then "native" else "gmp"} '' + lib.optionalString (targetPlatform != hostPlatform) '' diff --git a/pkgs/development/compilers/ghc/9.2.3.nix b/pkgs/development/compilers/ghc/9.2.3.nix index 016b7df90ce1..7803a5052559 100644 --- a/pkgs/development/compilers/ghc/9.2.3.nix +++ b/pkgs/development/compilers/ghc/9.2.3.nix @@ -101,6 +101,9 @@ let # build the haddock program (removing the `enableHaddockProgram` option). '' HADDOCK_DOCS = ${if enableHaddockProgram then "YES" else "NO"} + # Build haddocks for boot packages with hyperlinking + EXTRA_HADDOCK_OPTS += --hyperlinked-source --quickjump + DYNAMIC_GHC_PROGRAMS = ${if enableShared then "YES" else "NO"} BIGNUM_BACKEND = ${if enableNativeBignum then "native" else "gmp"} '' + lib.optionalString (targetPlatform != hostPlatform) ''