top-level/release-haskell.nix: test static linking as well

This way we can keep track of any new regressions to this as well as
have some binary cache, so using this infrastructure doesn't require
compiling GHC all the time.
This commit is contained in:
sternenseemann 2021-05-22 15:05:10 +02:00
parent e5341ffbb9
commit 0fddf5bd5a

View file

@ -81,6 +81,9 @@ let
recursiveUpdateMany = builtins.foldl' lib.recursiveUpdate {};
staticHaskellPackagesPlatforms =
packagePlatforms pkgs.pkgsStatic.haskellPackages;
jobs = recursiveUpdateMany [
(mapTestOn {
haskellPackages = packagePlatforms pkgs.haskellPackages;
@ -93,6 +96,16 @@ let
writers = testPlatforms.writers;
};
# test some statically linked packages to catch regressions
# and get some cache going for static compilation with GHC
pkgsStatic.haskellPackages = {
inherit (staticHaskellPackagesPlatforms)
hello
random
lens
;
};
# top-level packages that depend on haskellPackages
inherit (pkgsPlatforms)
agda
@ -273,6 +286,17 @@ let
(name: jobs.haskellPackages."${name}")
(maintainedPkgNames pkgs.haskellPackages));
};
staticHaskellPackages = pkgs.releaseTools.aggregate {
name = "static-haskell-packages";
meta = {
description = "Static haskell builds using the pkgsStatic infrastructure";
maintainers = [
lib.maintainers.sternenseemann
lib.maintainers.rnhmjoj
];
};
constituents = accumulateDerivations [ jobs.pkgsStatic ];
};
}
];