Merge pull request #124025 from sternenseemann/haskell-static-hydra

top-level/release-haskell.nix: test static linking as well
This commit is contained in:
Dennis Gosnell 2021-05-23 01:09:50 +09:00 committed by GitHub
commit 18a832e746
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 ];
};
}
];