Create OCI image with Haskell toolchain for omnirepo workflows.
ghccabalbild (repo's build tool)This image will be large. Consider:
# Omni/Agentd/Images/Haskell.nix
{ pkgs, agent-git, bild }:
pkgs.dockerTools.buildLayeredImage {
name = "agent-haskell";
tag = "latest";
fromImage = agent-git;
contents = [
pkgs.ghc
pkgs.cabal-install
bild
];
}
If full GHC is too heavy, could include just:
bild binary (statically linked)The agent would use bild for compilation, not raw ghc.
Omni/Agentd/Images/Haskell.nixpodman run agent-haskell bild --help works