Skip to content

Commit

Permalink
Add more packages
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Apr 12, 2024
1 parent c7e3d0f commit eca98b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions lib/call-cabal-project-to-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -359,14 +359,19 @@ let
else
grep '^version:' ${ghcSrc}/libraries/${name}/${name}.cabal.in
fi
'') (["base" "ghc-prim" "template-haskell"]
++ pkgs.lib.optional (builtins.compareVersions ghc.version "9.0" < 0) "integer-gmp"
'') (["base" "ghc-prim" "template-haskell" "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: ghc-boot"
echo "version: ${ghc.version}"
echo '---'
echo "name: ghc-boot-th"
echo "version: ${ghc.version}"
echo '---'
echo "name: ghci"
echo "version: ${ghc.version}"
echo '---'
Expand Down
2 changes: 1 addition & 1 deletion overlays/ghc-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ in rec {
inherit subDir;
includeSiblings = true;
}
else if builtins.elem subDir ["libraries/ghc-heap" "utils/remote-iserv" "libraries/ghci" "libraries/template-haskell" "utils/iserv" "libraries/ghc-prim"]
else if builtins.elem subDir ["libraries/ghc-heap" "utils/remote-iserv" "libraries/ghci" "libraries/template-haskell" "utils/iserv" "libraries/ghc-prim" "libraries/libiserv"]
then "${ghc.passthru.configured-src}/${subDir}"
else "${ghc.passthru.raw-src}/${subDir}";
nix = callCabal2Nix ghcName "${ghcName}-${pkgName}" src;
Expand Down

0 comments on commit eca98b3

Please sign in to comment.