Open peterbecich opened 1 year ago
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
/nix/store/....updateMaterialized
check-compiler-materialization
Describe the solution you'd like
nix-build scripts/check-compiler-materialization --argstr compiler-nix-name all
and calls updateMaterialized
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
/nix/store/.*-updateMaterialized
Describe alternatives you've considered
What is the correct way to use the compiler-nix-names argument for multiple GHC versions? https://github.com/input-output-hk/haskell.nix/blob/85cdbaa0774921aeea43d1deb8d7cdc4272b7b4e/scripts/check-compiler-materialization/default.nix#L3
compiler-nix-names
Additional context
Perhaps something like this:
https://github.com/input-output-hk/cicero-pipe/blob/6d4e29aa5806e1342919b3d626328abfa9e7e600/flake.nix#L55-L66 https://github.com/input-output-hk/cicero-pipe/blob/6d4e29aa5806e1342919b3d626328abfa9e7e600/flake.nix#L86-L97
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
We should definitely try this.
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:
and
/nix/store/....updateMaterialized
untilcheck-compiler-materialization
completes successfully: https://input-output-hk.github.io/haskell.nix/dev/adding-new-ghc.html#add-the-materialized-filesDescribe the solution you'd like
and calls
updateMaterialized
or
which covers all versions and calls
updateMaterialized
, ora 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-scriptDescribe alternatives you've considered
What is the correct way to use the
compiler-nix-names
argument for multiple GHC versions? https://github.com/input-output-hk/haskell.nix/blob/85cdbaa0774921aeea43d1deb8d7cdc4272b7b4e/scripts/check-compiler-materialization/default.nix#L3Additional context