-
Notifications
You must be signed in to change notification settings - Fork 49
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
Refactor nix files #99
base: master
Are you sure you want to change the base?
Conversation
@nlewo, please, check when you have time |
@nlewo, I want a mechanism to use nix2container with arbitrary I believe we will have no performance issues. In the article (link) linked in the issue #3, the author writes about performance issues when using two different versions of nixpkgs in flake inputs, not when using overlays.
In a discussion, the author says it's okay to use overlays in certain cases (link).
A commenter states that per-overlay overhead is minimal (link). |
pkgs = import nixpkgs {
inherit system;
overlays = [
inputs.fenix.overlays.default
inputs.nix2container.overlays.default
];
}; This is the way. Without this style, I see that my input is bringing along its own packages and wonder if they are from nixpkgs-22.05 or whatever. In general, proliferation of nixpkgs versions should only be used as a last resort, so overlay style of use, which presumes to be consumed with the user's version of nixpkgs, is the correct default usage pattern. Btw
I'm just evaluating tools and saw this PR. |
Which now fails in application: |
nix2container
topkgs
.nix2container
, so that one doesn't need to writenix2container.nix2container
.callPackage
expressions using this new attrset structureoutputs: inputs