Skip to content

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

hamishmack added a commit that referenced this pull request Jan 29, 2025
hamishmack added a commit that referenced this pull request Feb 3, 2025
* Add nixpkgs-2411 and update other nixpkgs pins

* Avoid broken nixpkgs ghc 9.0.2 (use 9.6.4 when present)

* Relax version check

* Fix for ghc 9.10.1

* Stick with ghc 8.10.7 for old versions of alex and happy

* Fix for GHC 8.10.7

* Fix warning from srcOnly

* Avoid https://gitlab.haskell.org/ghc/ghc/-/issues/25608

* Only patch rcodesign 0.22.0

* ifdLevel 1

* Remove ghc boot tools from roots (having ghc in roots should be enough)

* Add missing casts

* Fix for windows cross compilation

* Fix for windows cross compilation

* is_io_mng_native_p is in RtsFlags.h for older versions of GHC

* Fix for windows cross compilation

* ifdLevel 2

* ifdLevel 3

* Fix HsOpenSSL tests

* Fix HsOpenSSL tests

* Fix HsOpenSSL tests

* Drop ghc 8.10 from ci

* Drop mingwW64 from ci

* Skip flaky test

* Add mingwW64 back into ci (but not GHC 9.6.6)

* Drop GHC <9.6 from CI

* Remove unused hydra input

See #2308

* Use ghc 9.6.6 for github tests

* Use nixpkgs-unstable directly (instead of via `follows`) in default.nix

* Update shell-for test to use IFD

* Update shell-for test to use IFD
@hamishmack
Copy link
Collaborator

Merged as part of #2307

@hamishmack hamishmack closed this Feb 3, 2025
@amesgen amesgen deleted the remove-hydra-input branch February 3, 2025 09:42
@amesgen amesgen restored the remove-hydra-input branch February 3, 2025 09:42
@amesgen amesgen deleted the remove-hydra-input branch February 3, 2025 09:43
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.

2 participants