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

don't re-import nixpkgs for no reason #89

Open
lolbinarycat opened this issue Mar 26, 2024 · 2 comments
Open

don't re-import nixpkgs for no reason #89

lolbinarycat opened this issue Mar 26, 2024 · 2 comments

Comments

@lolbinarycat
Copy link

instead of import nixpkgs { inherit system; };, which relies on coercing nixpkgs into a string via the outPath attribute the flake system adds, then directly calling default.nix (possibly bypassing customization done by flake.nix), why not just do nixpkgs.legacyPackages."${system}"?

@Mic92
Copy link
Member

Mic92 commented Mar 27, 2024

where do you see this pattern being used?

@Mic92
Copy link
Member

Mic92 commented Mar 27, 2024

Ah. here:

pkgs = import nixpkgs { inherit system; };

Yes. Agreed.

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