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

flake-parts input missing from all flake.nix files #2

Open
multivac61 opened this issue May 29, 2024 · 5 comments
Open

flake-parts input missing from all flake.nix files #2

multivac61 opened this issue May 29, 2024 · 5 comments

Comments

@multivac61
Copy link

No description provided.

@tfc
Copy link
Owner

tfc commented May 29, 2024

Did you get an error message from somewhere? flake-parts should be obtained from the registry, the way the flake is written now.

@multivac61
Copy link
Author

Apologies! I wasn't aware flake-parts had been moved into nixpkgs. Closing the issue. Thank you.

@tfc
Copy link
Owner

tfc commented May 30, 2024

No problem.

However, flake-parts has not been moved into nixpkgs. Flakes have this magic feature:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
  };

  outputs = inputs@{ foo, bar, baz, ... }:

...

The inputs foo, bar, baz are not listed in the inputs, so the nix registry will be checked if it knows such entries. This way you don't have control which version of them is used on the next flake update, but sometimes you don't care.

@multivac61
Copy link
Author

Ah, now I remember where I had the issue:

CleanShot 2024-05-30 at 11 21 15@2x

@multivac61 multivac61 reopened this May 30, 2024
@multivac61
Copy link
Author

Does not happen if I explicitly add flake-parts.url = "github:hercules-ci/flake-parts"; to the inputs 😄

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

No branches or pull requests

2 participants