You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was experimenting with packaging a Go program recently I noticed gomod2nix was using an overlay for it's own copy of nixpkgs, which, after a cursory browse of the source, seems unnecessary. Have you thought about removing it?
[overlays] have a real performance impact as each flake would introduce its own instance of nixpkgs, which can further multiply if these flakes are than import into multiple NixOS configurations
I was experimenting with packaging a Go program recently I noticed gomod2nix was using an overlay for it's own copy of nixpkgs, which, after a cursory browse of the source, seems unnecessary. Have you thought about removing it?
See: nix-community/poetry2nix@05b788f / https://zimbatm.com/notes/1000-instances-of-nixpkgs
As an idea, perhaps expose
buildGoApplication
andmkGoEnv
on a lib attribute like: https://github.com/cachix/pre-commit-hooks.nix/blob/5668d079583a5b594cb4e0cc0e6d84f1b93da7ae/flake.nix#L51Hope I didn't come off as too critical - just an idea for the idea bin.
The text was updated successfully, but these errors were encountered: