This is like 4 libraries in one?! #563
Replies: 1 comment 2 replies
|
Well, the "DAG engine" is a combination of a single nix type called It is just a type, and a sorting function from nixpkgs, more or less. It is an "extra" thing, but one which we use quite a bit. The point is, generate wrapper derivations using the module system. Then, in addition, we have an attribute set of modules with application specific configurations for more fine-grained options for specific programs. Theoretically, if we were to split it, there are 2 things in this repo. The split would be:
and then But, in Nixpkgs has a mirrored nixpkgs-lib repo, and something similar would likely be the best thing to do here too, but it hasn't felt like necessary complexity yet. The module system is much simpler to call than you might think. You might not need an adapter for your purpose. We are calling it with some existing options tailored to making wrapper derivations. It calls If you want to make a thing and accept some options, set up a value to have as an output, and if you have just a few it can be reasonably used as a submodule too elsewhere, like we do with our wrapper modules. Basically, the nixpkgs module system is a tool for doing a specific task with well documented options which can be overridden. A task may have a lot of options associated with doing it, such as "creating a wrapper derivation" or "managing a user" but the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Literally, a core DAG engine, wrapper tooling, a module system adapter, and application-specific configurations.
Honestly, I just want the module system adapters?
Would it be difficult to separate that out into its own flake/module? and import it here?
edit: Not to be a downer or anything, I do appreciate the work, it looks like a lot of very useful functions, sure it took time;
Just asking if it's more tightly coupled than I realize? Would it require a lot of changes to be able to factor those out?
All reactions