-
Notifications
You must be signed in to change notification settings - Fork 67
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/nix-command based eval? #327
Comments
I don't think that would work. nixpkgs currently does not expose all packages in the flake and legacyPackages is not cached afaik. Also as far as I know it might also slow down the first evaluation since for every attribute it would needs to create entries in the eval cache sqlite databases. |
This is the first ive heard of not all packages being exposed |
If you do |
What would be the problem with writing a small expression that gives you all of the packages? |
Than you won't benefit from any cache and just reimplement nix-env in a slower way. Also there are some exceptions thrown in nixpkgs every once in a while that you cannot catch from nix. |
Why not put that script in a flake and modify the nixpkgs input? |
I'd say it would be easier to just cache the nixpkgs package list that nix-env generates: nixpkgs-review/nixpkgs_review/review.py Line 344 in 30a6655
and less error prone than those terrible nix expressions that has to use tons of tryEval. |
would it be possible to use
nix eval
, so that the evaluation is cached? I feel it would speed up usage a fair bitThe text was updated successfully, but these errors were encountered: