From 4adf84076f256a2ba535e969ab6f2fe2a61a1921 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 14 Apr 2023 23:33:42 -0400 Subject: [PATCH] fix(cabal).more() Oooooooooof --- projects/haskell.org/cabal/package.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/haskell.org/cabal/package.yml b/projects/haskell.org/cabal/package.yml index 655af1d3..087f9ef6 100644 --- a/projects/haskell.org/cabal/package.yml +++ b/projects/haskell.org/cabal/package.yml @@ -61,10 +61,14 @@ build: # this is not an acceptable solution, do you know a better one? pls PR 🙏 #FIXME also this sed line sucks but I got bored trying to make it work - sed -i.bak -e 's/4.15,/4.17,/' cabal-install.cabal + sed -i.bak \ + -e 's/build-depends: base.*/build-depends: base >=4.10 \&\& <5/' \ + -e 's/text.*>=.*/text >= 1.2.3 \&\& < 3,/' \ + cabal-install.cabal # ^^ SEE https://github.com/haskell/cabal/issues/8118 rm *.bak + mkdir -p "{{prefix}}/bin" ../../bootstrap/cabal v2-update ../../bootstrap/cabal v2-install \ --install-method=copy \