From 1216772f5da8c6d6efaecb798f92f035a8d93cf1 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 9 Apr 2022 16:23:59 +0200 Subject: haskell.compiler.ghc922Binary: init at 9.2.2 Since the musl / alpine bindist now uses the GMP backend, we need to learn to tell Hadrian bindists about GMP. Hadrian bindists no longer have the buildinfo files, instead we need to patch the package db before installing and recache it afterwards which is not too hard, luckily. Same goes for libiconv and base as well as libffi and rts on darwin (those bindists are all produced using hadrian). See also: https://gitlab.haskell.org/ghc/ghc/-/issues/21554#note_431000 Note that pkgsMusl.haskell.compiler.ghc922Binary still has severe issues: It can't produce shared libraries because the bindist ships none (and using the GMP backend has a hard requirement for shared objects, apparently) and ghci segfaults for unknown reasons at the moment. However, I've successfully compiled hadrian with it so far, so perhaps it's good enough. --- pkgs/top-level/haskell-packages.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'pkgs/top-level/haskell-packages.nix') diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 79815b65f605c..68a3230995694 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -8,6 +8,8 @@ let "ghc8102BinaryMinimal" "ghc8107Binary" "ghc8107BinaryMinimal" + "ghc922Binary" + "ghc922BinaryMinimal" "ghcjs" "ghcjs810" "integer-simple" @@ -76,6 +78,14 @@ in { minimal = true; }; + ghc922Binary = callPackage ../development/compilers/ghc/9.2.2-binary.nix { + llvmPackages = pkgs.llvmPackages_12; + }; + ghc922BinaryMinimal = callPackage ../development/compilers/ghc/9.2.2-binary.nix { + llvmPackages = pkgs.llvmPackages_12; + minimal = true; + }; + ghc884 = callPackage ../development/compilers/ghc/8.8.4.nix { bootPkgs = # aarch64 ghc865Binary gets SEGVs due to haskell#15449 or similar @@ -212,6 +222,18 @@ in { compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.10.x.nix { }; packageSetConfig = bootstrapPackageSet; }; + ghc922Binary = callPackage ../development/haskell-modules { + buildHaskellPackages = bh.packages.ghc922Binary; + ghc = bh.compiler.ghc922Binary; + compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.2.x.nix { }; + packageSetConfig = bootstrapPackageSet; + }; + ghc922BinaryMinimal = callPackage ../development/haskell-modules { + buildHaskellPackages = bh.packages.ghc922BinaryMinimal; + ghc = bh.compiler.ghc922BinaryMinimal; + compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.2.x.nix { }; + packageSetConfig = bootstrapPackageSet; + }; ghc884 = callPackage ../development/haskell-modules { buildHaskellPackages = bh.packages.ghc884; ghc = bh.compiler.ghc884; -- cgit 1.4.1