Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused hydra input #2308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amesgen
Copy link
Member

@amesgen amesgen commented Jan 22, 2025

It seems to be unused since #2239.


With Nix 2.26.0, I otherwise get

       … while updating the flake input 'haskellNix'

       … while updating the flake input 'haskellNix/hydra'

       error: cannot find flake 'flake:hydra' in the flake registries

I guess this is due to the following change:

Flake lock file generation now ignores local registries #12019

When resolving indirect flake references like nixpkgs in flake.nix files, Nix will no longer use the system and user flake registries. It will only use the global flake registry and overrides given on the command line via --override-flake.

This avoids accidents where users have local registry overrides that map nixpkgs to a path: flake in the local file system, which then end up in committed lock files pushed to other users.

In the future, we may remove the use of the registry during lock file generation altogether. It's better to explicitly specify the URL of a flake input. For example, instead of

{
  outputs = { self, nixpkgs }: { ... };
}

write

{
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
  outputs = { self, nixpkgs }: { ... };
}

https://discourse.nixos.org/t/nix-2-26-released/59211

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant