release-haskell: build a few haskell packages with musl

This is helpful to get a small cache going for people
who want musl-enabled packages.
This commit is contained in:
(cdep)illabout 2021-07-18 15:18:30 +09:00
parent b0a42925f1
commit 5b6f2ae03d
No known key found for this signature in database
GPG Key ID: 462E0C03D11422F4

View File

@ -81,8 +81,16 @@ let
recursiveUpdateMany = builtins.foldl' lib.recursiveUpdate {};
staticHaskellPackagesPlatforms =
packagePlatforms pkgs.pkgsStatic.haskell.packages.integer-simple.ghc8104;
removeMany = itemsToRemove: list: lib.foldr lib.remove list itemsToRemove;
removePlatforms = platformsToRemove: packageSet:
lib.mapAttrsRecursive
(_: val:
if lib.isList val
then removeMany platformsToRemove val
else val
)
packageSet;
jobs = recursiveUpdateMany [
(mapTestOn {
@ -213,6 +221,21 @@ let
integer-simple = {};
};
# Get some cache going for MUSL-enabled GHC.
pkgsMusl.haskellPackages =
removePlatforms
[
"aarch64-linux" # aarch64 does not appear to be supported
"x86_64-darwin" # musl only supports linux
]
{
inherit (packagePlatforms pkgs.pkgsMusl.haskellPackages)
hello
lens
random
;
};
# Test some statically linked packages to catch regressions
# and get some cache going for static compilation with GHC.
# Use integer-simple to avoid GMP linking problems (LGPL)