-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add readdir primop #235
Add readdir primop #235
Conversation
This is useful for things like nix-make, and may make nixpkgs's organization cleaner
It should be named Also, I don't want to merge this until the use case is more concrete (how "may" it make Nixpkgs organization cleaner?). |
The main use case I envisioned was for nix-make, similar to how you use The nixpkgs organization thing was mostly about possibly getting rid of most of |
@edolstra Does my explanation help? |
+1 on this feature by itself. Also hope this will make enumeration of packages in all-packages.nix obsolete. |
There are zillions of lines of the form foo = callPackage ../bla/foo { }; in all-packages.nix. To get rid of this verbosity, you can now list such packages in pkgs/auto-packages.nix. This is just a list of package file names, e.g. development/libraries/libogg development/libraries/libvorbis tools/archivers/gnutar If the package needs non-default function arguments, or if its intended attribute name is different from its file name, then you cannot put it in auto-packages.nix and instead need to specify it in all-packages.nix. If Nix had a glob function (NixOS/nix#235), we could even get rid of auto-packages.nix and have package expressions be discovered automatically. However, that might not be desirable because of the need to traverse the file system to find packages we may not even use.
…ser-0.17.0 chore(deps): bump myst-parser from 0.16.1 to 0.17.0
these should really wait for networks to come up, otherwise they can fail. fixes NixOS#235 Change-Id: I08989e8bdb0de280df74660ac43983de5c34fa9d
This is useful for things like nix-make, and may make nixpkgs's organization cleaner