summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-head.nix2
-rw-r--r--pkgs/development/haskell-modules/patches/jailbreak-Cabal-syntax.patch16
2 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-head.nix b/pkgs/development/haskell-modules/configuration-ghc-head.nix
index e1e3f2c99884..374d9850284f 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-head.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-head.nix
@@ -74,4 +74,6 @@ self: super: {
# Break out of "yaml >=0.10.4.0 && <0.11": https://github.com/commercialhaskell/stack/issues/4485
stack = doJailbreak super.stack;
+ jailbreak-cabal = appendPatch ./patches/jailbreak-Cabal-syntax.patch super.jailbreak-cabal;
+
}
diff --git a/pkgs/development/haskell-modules/patches/jailbreak-Cabal-syntax.patch b/pkgs/development/haskell-modules/patches/jailbreak-Cabal-syntax.patch
new file mode 100644
index 000000000000..38a030d332f0
--- /dev/null
+++ b/pkgs/development/haskell-modules/patches/jailbreak-Cabal-syntax.patch
@@ -0,0 +1,16 @@
+diff --git a/jailbreak-cabal.cabal b/jailbreak-cabal.cabal
+index d34c616..10be8d4 100644
+--- a/jailbreak-cabal.cabal
++++ b/jailbreak-cabal.cabal
+@@ -21,5 +21,10 @@ source-repository head
+
+ executable jailbreak-cabal
+ main-is: Main.hs
+- build-depends: base < 5, Cabal == 3.*
++ build-depends:
++ base < 5,
++ Cabal == 3.*
++ if impl(ghc >= 9.3)
++ build-depends:
++ Cabal-syntax
+ default-language: Haskell2010