From cc61d6cca06aaa46ccde79a92cd94dbb27c634a7 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Tue, 9 Nov 2021 13:25:03 +0100 Subject: [PATCH] haskellPackages.ghc-bignum: pin to 1.0 for 8.10.* support Starting with GHC 9.0.1 ghc-bignum is bundled with GHC and we don't need to worry about building it from hackage. ghc-bignum 1.2 doesn't seem to build with anything before 9.2.1, so we need to downgrade ghc-bignum to 1.0 (and sadly keep our patches) for 8.10.7 support. --- .../configuration-hackage2nix/main.yaml | 2 ++ pkgs/development/haskell-modules/hackage-packages.nix | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index 963426fd8af3..d44340db9e1b 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -96,6 +96,8 @@ default-package-overrides: - SVGFonts < 1.8 # 2021-11-09: 0.20.6 can't be built with aeson < 2.0 which is a pain to override at the moment - futhark < 0.20.6 + # 2021-11-09: ghc-bignum is bundled starting with 9.0.1; only 1.0 builds with GHCs prior to 9.2.1 + - ghc-bignum == 1.0 extra-packages: - base16-bytestring < 1 # required for cabal-install etc. diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index 5b4a0ddc231c..f1d57449473d 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -103415,6 +103415,16 @@ self: { }) {}; "ghc-bignum" = callPackage + ({ mkDerivation }: + mkDerivation { + pname = "ghc-bignum"; + version = "1.0"; + sha256 = "0xl848q8z6qx2bi6xil0d35lra7wshwvysyfblki659d7272b1im"; + description = "GHC BigNum library"; + license = lib.licenses.bsd3; + }) {}; + + "ghc-bignum_1_2" = callPackage ({ mkDerivation }: mkDerivation { pname = "ghc-bignum"; @@ -103422,6 +103432,7 @@ self: { sha256 = "0ldg53hirqz6yszacpajq6pf407bflyk46wjhx5g8n2cjz54vv3p"; description = "GHC BigNum library"; license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; }) {}; "ghc-bignum-orphans" = callPackage