juspay/nix-health
View on GitHubAdd a health check to confirm that rosetta was installed
Open
#26 opened on Jul 10, 2024
enhancementgood first issue
Repository metrics
- Stars
- (47 stars)
- PR merge metrics
- (PR metrics pending)
Description
Some projects explicitly use x86_64-darwin packages even on ARM macs:
Without installing rosetta, the dev would see:
For this, we need to add a check to verify that Nix can build packages for x86_64-darwin.
It might be worth doing this in a more general fashion, by calling the health check canBuildFor. So nammayatri flake can contain:
{
nix-health.default = {
can-build-for.systems."aarch64-darwin" = [ "x86_64-darwin" ];
};
}
Or, if that's an overkill, we can just check that rosetta was installed, which would then look like:
{
nix-health.default = {
rosetta = {
installed = true;
};
};
}