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

[feature] Use by-name #88

Open
Freed-Wu opened this issue Mar 14, 2024 · 4 comments
Open

[feature] Use by-name #88

Freed-Wu opened this issue Mar 14, 2024 · 4 comments

Comments

@Freed-Wu
Copy link

Now nixpkgs use pkgs/by-name. Is it possible this template use it, too?

@sikmir
Copy link

sikmir commented Mar 14, 2024

@Mic92
Copy link
Member

Mic92 commented Mar 14, 2024

Overlays are expensive evaluation wise. Is there maybe an alternative that works without creating 1 nixpkgs instead for every NUR repository?

@Mic92
Copy link
Member

Mic92 commented Mar 14, 2024

From matrix:

│122507   joerg │ So there is this step: pkgs-overlay = import by-name-overlay ./pkgs/by-name;                               
│122518   joerg │ can the result not be just passed pkgs?                                                                    
│122526   joerg │ like pkgs-overlay pkgs pkgs                                                                                
│122544   joerg │ Than it should just return the nur package set.                                                            
│122610   joerg │ Otherwise we would re-export all 80k nixpkgs pkgs in each nur repository                                   
│122626   joerg │ And one would be not able to tell what packages are actually comming from the NUR repository

@bbjubjub2494
Copy link

So I achieved this the stupid and simple way with readDir and mapAttrs.
I don't think it incurs the same cost as the overlay solution but I could be wrong.
We can also ad-hoc a "super"/"prev" argument with a let-binding.

Red-Flake/packages@7945783

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

4 participants