Skip to content

Commit

Permalink
Fix for latest GHC head where ghc-bignum has no exported-modules and …
Browse files Browse the repository at this point in the history
…renames som of the reexported ones.
  • Loading branch information
hamishmack committed Jan 5, 2025
1 parent 26f6823 commit 78f5c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/call-cabal-project-to-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ let
json_cabal_file=$(mktemp)
cabal2json $fixed_cabal_file > $json_cabal_file
exposed_modules="$(jq -r '.library."exposed-modules"[]|select(type=="array")[]' $json_cabal_file)"
reexported_modules="$(jq -r '.library."reexported-modules"//[]|.[]|select(type=="array")[]' $json_cabal_file)"
exposed_modules="$(jq -r '.library."exposed-modules"//[]|.[]|select(type=="array")[]' $json_cabal_file)"
reexported_modules="$(jq -r '.library."reexported-modules"//[]|.[]|select(type=="array")[]' $json_cabal_file | sed 's/.* as //g')"
# FIXME This is a bandaid. Rather than doing this, conditionals should be interpreted.
${pkgs.lib.optionalString pkgs.stdenv.targetPlatform.isGhcjs ''
Expand Down

0 comments on commit 78f5c60

Please sign in to comment.