about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2023-07-01 19:31:29 +0200
committersternenseemann <sternenseemann@systemli.org>2023-07-01 19:31:29 +0200
commitf50da30a5ddca84b5f4dc87490ba6330d3dd0ff2 (patch)
treee092b93287976dca10a2339f83a177a7e83d8cd6 /pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
parente905807bf275512db3085d4523a45d7d67d7a7bf (diff)
downloadnixlib-f50da30a5ddca84b5f4dc87490ba6330d3dd0ff2.tar
nixlib-f50da30a5ddca84b5f4dc87490ba6330d3dd0ff2.tar.gz
nixlib-f50da30a5ddca84b5f4dc87490ba6330d3dd0ff2.tar.bz2
nixlib-f50da30a5ddca84b5f4dc87490ba6330d3dd0ff2.tar.lz
nixlib-f50da30a5ddca84b5f4dc87490ba6330d3dd0ff2.tar.xz
nixlib-f50da30a5ddca84b5f4dc87490ba6330d3dd0ff2.tar.zst
nixlib-f50da30a5ddca84b5f4dc87490ba6330d3dd0ff2.zip
haskell.packages.*.system-cxx-std-lib: make sure attr always exists
GHC 9.4 introduced a virtual package for linking against the C++
standard library. Since some packages depend on it when configured with
GHC 9.4 (as hackage2nix does), we need to make sure the attribute exists
or some packages will fail to evaluate. The may still build, even though
there is no shim for lower GHC versions (as far as I know).
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
index e7cb3f23d2df..756b66237e62 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
@@ -46,6 +46,9 @@ self: super: {
   # GHC only bundles the xhtml library if haddock is enabled, check if this is
   # still the case when updating: https://gitlab.haskell.org/ghc/ghc/-/blob/0198841877f6f04269d6050892b98b5c3807ce4c/ghc.mk#L463
   xhtml = if self.ghc.hasHaddock or true then null else self.xhtml_3000_2_2_1;
+  # These core package only exist for GHC >= 9.4. The best we can do is feign
+  # their existence to callPackages, but their is no shim for lower GHC versions.
+  system-cxx-std-lib = null;
 
   # Need the Cabal-syntax-3.6.0.0 fake package for Cabal < 3.8 to allow callPackage and the constraint solver to work
   Cabal-syntax = self.Cabal-syntax_3_6_0_0;