Skip to content

check-compiler-materialization and updateMaterialized for all GHC versions in one command #1790

Open
@peterbecich

Description

@peterbecich

Is your feature request related to a problem? Please describe.

To ensure the materialization is up-to-date, a.f.a.i.k. it's necessary to run through every GHC version with this:

nix-build scripts/check-compiler-materialization --argstr compiler-nix-name ghcXYZ

and /nix/store/....updateMaterialized until check-compiler-materialization completes successfully: https://input-output-hk.github.io/haskell.nix/dev/adding-new-ghc.html#add-the-materialized-files

Describe the solution you'd like

nix-build scripts/check-compiler-materialization --argstr compiler-nix-name all

and calls updateMaterialized

or

nix-build scripts/check-compiler-materialization

which covers all versions and calls updateMaterialized, or

a bash script which executes check-compiler-materialization for all GHC versions and repeatedly executes /nix/store/.*-updateMaterialized as needed, similar to: https://input-output-hk.github.io/haskell.nix/tutorials/materialization.html#how-can-we-update-the-nix-files-with-a-script

Describe alternatives you've considered

What is the correct way to use the compiler-nix-names argument for multiple GHC versions?

{ compiler-nix-name ? throw "Please pass `compiler-nix-name` or `compiler-nix-names`", compiler-nix-names ? [ compiler-nix-name ], systems ? [ builtins.currentSystem ] }:

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpreservedKeep stale bot away

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions