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:
parent
e5341ffbb9
commit
0fddf5bd5a
1 changed files with 24 additions and 0 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue