Hello, I decided to try out unstable on my main machine for a bit. When I do nh os switch I get a load of evaluation warnings (which I sort of expected and should be able to fix, though I’m not sure where I’m pulling in the xorg stuff) but what struck me was that they appear twice:
evaluation warning: The xorg package set has been deprecated, 'xorg.libXi' has been renamed to 'libxi'
evaluation warning: The xorg package set has been deprecated, 'xorg.libXrender' has been renamed to 'libxrender'
evaluation warning: The xorg package set has been deprecated, 'xorg.xcbutilimage' has been renamed to 'libxcb-image'
evaluation warning: The xorg package set has been deprecated, 'xorg.xcbutilrenderutil' has been renamed to 'libxcb-render-util'
evaluation warning: The option `documentation.man.generateCaches' defined in `/nix/store/4x5yrjxmjkhz9xndmyi1i24w84ag6nv1-source/modules/sw/fish.nix' has been renamed to `documentation.man.cache.enable'.
evaluation warning: The xorg package set has been deprecated, 'xorg.libXi' has been renamed to 'libxi'
evaluation warning: The xorg package set has been deprecated, 'xorg.libXrender' has been renamed to 'libxrender'
evaluation warning: The xorg package set has been deprecated, 'xorg.xcbutilimage' has been renamed to 'libxcb-image'
evaluation warning: The xorg package set has been deprecated, 'xorg.xcbutilrenderutil' has been renamed to 'libxcb-render-util'
evaluation warning: The option `documentation.man.generateCaches' defined in `/nix/store/4x5yrjxmjkhz9xndmyi1i24w84ag6nv1-source/modules/sw/fish.nix' has been renamed to `documentation.man.cache.enable'.
I assume this includes within flakes that are in my inputs too? Because my config does not have import nixpkgs or use nixpkgs.legacyPackages anywhere (at least with a quick rg check).
I think I might know my problem then. Have a few flakes that I’ve written out of necessity with little regard for evaluation speed. If both import nixpkgs and nixpkgs.legacyPackages are bad for eval time, what should I use instead? I know legacyPackages is better, but is there a better way?
For example, I have the following flake because I need to patch a packages dependencies (awful, but works):
Either overlays or manually using pkgs.callPackage where pkgs is the nixpkgs instance from the module system. I should probably do a full writeup on these soon…
I’m not sure how to use that exactly (and noogle doesn’t have documentation or example usage: pkgs.callPackage - Nix function reference). Could you point me to something that uses pkgs.callPackage to do something similar?
It really depends on whatever other code is being called though, it difficult to tell without a full-on example (including how you’re using it in your NixOS config).