diff options
author | sternenseemann <sternenseemann@systemli.org> | 2022-04-03 14:21:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-03 14:21:15 +0200 |
commit | 038d0d86e6e0e87c28318384f5e64377e11f2c0a (patch) | |
tree | 4b8f1e416c725e05b743f5e54cc6099042d221ed /pkgs/development/haskell-modules | |
parent | ae349e390c747b09d12723e1e1d14b5ac03da0d3 (diff) | |
parent | 35f137ea98ea0276926c1b0ddb002a832a2f9c01 (diff) | |
download | nixpkgs-038d0d86e6e0e87c28318384f5e64377e11f2c0a.tar nixpkgs-038d0d86e6e0e87c28318384f5e64377e11f2c0a.tar.gz nixpkgs-038d0d86e6e0e87c28318384f5e64377e11f2c0a.tar.bz2 nixpkgs-038d0d86e6e0e87c28318384f5e64377e11f2c0a.tar.lz nixpkgs-038d0d86e6e0e87c28318384f5e64377e11f2c0a.tar.xz nixpkgs-038d0d86e6e0e87c28318384f5e64377e11f2c0a.tar.zst nixpkgs-038d0d86e6e0e87c28318384f5e64377e11f2c0a.zip |
Merge pull request #166571 from hercules-ci/ghc902-backport-compact-unwind
[haskell-updates] ghc: Backport compact unwind support
Diffstat (limited to 'pkgs/development/haskell-modules')
8 files changed, 50 insertions, 2 deletions
diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 84be174e97e..f8ae9807cd1 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -287,8 +287,6 @@ self: super: ({ # https://github.com/fpco/unliftio/issues/87 unliftio = dontCheck super.unliftio; - # https://github.com/fpco/inline-c/issues/127 - inline-c-cpp = dontCheck super.inline-c-cpp; # https://github.com/haskell-crypto/cryptonite/issues/360 cryptonite = appendPatch ./patches/cryptonite-remove-argon2.patch super.cryptonite; diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix index 09794669044..84d0a30858f 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix @@ -2,6 +2,10 @@ with haskellLib; +let + inherit (pkgs.stdenv.hostPlatform) isDarwin; +in + self: super: { llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages; @@ -121,4 +125,7 @@ self: super: { ] super.mysql-simple; taffybar = markUnbroken (doDistribute super.taffybar); + + # https://github.com/fpco/inline-c/issues/127 (recommend to upgrade to Nixpkgs GHC >=9.0) + inline-c-cpp = (if isDarwin then dontCheck else x: x) super.inline-c-cpp; } diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix index d712ab9d1a2..5eaa1ae413d 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix @@ -2,6 +2,10 @@ with haskellLib; +let + inherit (pkgs.stdenv.hostPlatform) isDarwin; +in + self: super: { llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages; @@ -104,4 +108,6 @@ self: super: { mime-string = disableOptimization super.mime-string; + # https://github.com/fpco/inline-c/issues/127 (recommend to upgrade to Nixpkgs GHC >=9.0) + inline-c-cpp = (if isDarwin then dontCheck else x: x) super.inline-c-cpp; } 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 c0e9b7aab5a..6b56d9eb735 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix @@ -2,6 +2,10 @@ with haskellLib; +let + inherit (pkgs.stdenv.hostPlatform) isDarwin; +in + self: super: { llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages; @@ -150,4 +154,7 @@ self: super: { mysql-simple = addBuildDepends [ self.blaze-textual ] super.mysql-simple; + + # https://github.com/fpco/inline-c/issues/127 (recommend to upgrade to Nixpkgs GHC >=9.0) + inline-c-cpp = (if isDarwin then dontCheck else x: x) super.inline-c-cpp; } diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix index f36c77d636a..855afa28101 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix @@ -2,6 +2,10 @@ with haskellLib; +let + inherit (pkgs.stdenv.hostPlatform) isDarwin; +in + self: super: { llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages; @@ -118,4 +122,10 @@ self: super: { multistate = doJailbreak super.multistate; # https://github.com/lspitzner/butcher/issues/7 butcher = doJailbreak super.butcher; + + # We use a GHC patch to support the fix for https://github.com/fpco/inline-c/issues/127 + # which means that the upstream cabal file isn't allowed to add the flag. + inline-c-cpp = + (if isDarwin then appendConfigureFlags ["--ghc-option=-fcompact-unwind"] else x: x) + super.inline-c-cpp; } diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix index eb1245191cb..b55429da65b 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix @@ -2,6 +2,10 @@ with haskellLib; +let + inherit (pkgs.stdenv.hostPlatform) isDarwin; +in + self: super: { llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages; @@ -236,4 +240,9 @@ self: super: { hls-retrie-plugin = null; hls-splice-plugin = null; })); + + # https://github.com/fpco/inline-c/pull/131 + inline-c-cpp = + (if isDarwin then appendConfigureFlags ["--ghc-option=-fcompact-unwind"] else x: x) + super.inline-c-cpp; } diff --git a/pkgs/development/haskell-modules/configuration-ghc-head.nix b/pkgs/development/haskell-modules/configuration-ghc-head.nix index e1e3f2c9988..9c7895d4fe6 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-head.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-head.nix @@ -9,6 +9,10 @@ with haskellLib; +let + inherit (pkgs.stdenv.hostPlatform) isDarwin; +in + self: super: { llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages; @@ -74,4 +78,9 @@ self: super: { # Break out of "yaml >=0.10.4.0 && <0.11": https://github.com/commercialhaskell/stack/issues/4485 stack = doJailbreak super.stack; + # https://github.com/fpco/inline-c/pull/131 + # and/or https://gitlab.haskell.org/ghc/ghc/-/merge_requests/7739 + inline-c-cpp = + (if isDarwin then appendConfigureFlags ["--ghc-option=-fcompact-unwind"] else x: x) + super.inline-c-cpp; } diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index dfa46c41b93..a85df6b23c0 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -327,6 +327,8 @@ package-maintainers: - hercules-ci-cli - hercules-ci-cnix-expr - hercules-ci-cnix-store + - inline-c + - inline-c-cpp rvl: - taffybar - arbtt |