Skip to content

Commit

Permalink
Add ghci
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Apr 11, 2024
1 parent b47022c commit 5148a83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/call-cabal-project-to-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -359,14 +359,17 @@ let
else
grep '^version:' ${ghcSrc}/libraries/${name}/${name}.cabal.in
fi
'') (["base" "ghc-prim" "ghci" "template-haskell"]
'') (["base" "ghc-prim" "template-haskell"]
++ pkgs.lib.optional (builtins.compareVersions ghc.version "9.0" < 0) "integer-gmp"
++ pkgs.lib.optional (builtins.compareVersions ghc.version "9.0" >= 0) "ghc-bignum"))}
${pkgs.lib.optionalString (builtins.compareVersions ghc.version "9.2" >= 0) ''
echo '---'
echo "name: ghc"
echo "version: ${ghc.version}"
echo '---'
echo "name: ghci"
echo "version: ${ghc.version}"
echo '---'
echo "name: system-cxx-std-lib"
echo "version: 1.0"
''}
Expand Down

0 comments on commit 5148a83

Please sign in to comment.