Also, remembering the attempted Packages Modules WG, arguably the main problem with using something like the module system for packages was performance. @DavHau experimented with this idea by making mkDerivation
use the module system, and determined that evaluation was 2-3x slower. Shouldn’t come at a surprise though, the module system does much more with its type checking and co, but we considered that a blocker for the scale of Nixpkgs.
4 Likes