Skip to content

Commit

Permalink
Fix relude and semaphore-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Apr 17, 2024
1 parent f01635a commit 9647a0e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/call-cabal-project-to-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ let
array.depends = ["base"];
base.depends = ["ghc-bignum" "ghc-prim" "rts"];
binary.depends = ["array" "base" "bytestring" "containers"];
bytestring.depends = ["base" "deepseq" "ghc-prim" "template-haskell"];
containers.depends = ["array" "base" "deepseq" "template-haskell"];
# bytestring.depends = ["base" "deepseq" "ghc-prim" "template-haskell"];
# containers.depends = ["array" "base" "deepseq" "template-haskell"];
deepseq.depends = ["array" "base" "ghc-prim"];
directory.depends = ["base" "filepath" "time" "unix"];
exceptions.depends = ["base" "mtl" "stm" "template-haskell" "transformers"];
Expand All @@ -357,15 +357,15 @@ let
hpc.depends = ["base" "containers" "deepseq" "directory" "filepath" "time"];
integer-gmp.depends = ["base" "ghc-bignum" "ghc-prim"];
mtl.depends = ["base" "transformers"];
parsec.depends = ["base" "bytestring" "mtl" "text"];
# parsec.depends = ["base" "bytestring" "mtl" "text"];
pretty.depends = ["base" "deepseq" "ghc-prim"];
process.depends = ["base" "deepseq" "directory" "filepath" "unix"];
rts.depends = [];
semaphore-compat.depends = ["base" "exceptions" "unix"];
stm.depends = ["array" "base"];
template-haskell.depends = ["base" "ghc-boot-th" "ghc-prim" "pretty"];
terminfo.depends = ["base"];
text.depends = ["array" "base" "binary" "bytestring" "deepseq" "ghc-prim" "template-haskell"];
# text.depends = ["array" "base" "binary" "bytestring" "deepseq" "ghc-prim" "template-haskell"];
time.depends = ["base" "deepseq"];
transformers.depends = ["base"];
unix.depends = ["base" "bytestring" "filepath" "time"];
Expand Down Expand Up @@ -410,7 +410,7 @@ let
''
else ''
if [ -f ${ghcSrc}/libraries/${name}/${name}.cabal ]; then
VER_${varname name}=$(grep -i '^version:' ${ghcSrc}/libraries/${name}/${name}.cabal | sed 's|^[Vv]ersion:[ \t]*\(.*\)$|\1|')
VER_${varname name}=$(cat ${ghcSrc}/libraries/${name}/${name}.cabal | tr "\n" "\r" | sed -E -e 's/.*\r[Vv]ersion:( |\r|\t)*([0-9.]*).*/\2/')
PKGS+=" ${name}"
LAST_PKG="${name}"
elif [ -f ${ghcSrc}/libraries/Cabal/${name}/${name}.cabal ]; then
Expand Down

0 comments on commit 9647a0e

Please sign in to comment.