nixpkgs/lib
Taeer Bar-Yam 0bef0c38f7 lib.modules: add mkDerivedConfig
mkDerivedConfig : Option a -> (a -> Definition b) -> Definition b

Create config definitions with the same priority as the definition of another option.
This should be used for option definitions where one option sets the value of another as a convenience.
For instance a config file could be set with a `text` or `source` option, where text translates to a `source`
value using `mkDerivedConfig options.text (pkgs.writeText "filename.conf")`.

It takes care of setting the right priority using `mkOverride`.
2021-11-15 07:03:41 -05:00
..
systems lib/systems: add x86_64-darwin hostPlatform 2021-11-10 11:37:34 -08:00
tests lib/tests/sources: update to Nix 2.4 cli syntax 2021-11-09 10:47:20 -08:00
asserts.nix
attrsets.nix lib: make extendDerivation lighter on eval 2021-10-15 16:39:10 +02:00
cli.nix
customisation.nix lib: make extendDerivation lighter on eval 2021-10-15 16:39:10 +02:00
debug.nix lib/debug: add traceFnSeqN 2021-01-25 19:25:50 +01:00
default.nix lib.modules: add mkDerivedConfig 2021-11-15 07:03:41 -05:00
deprecated.nix treewide: fold -> foldr 2021-01-26 10:57:07 +07:00
fetchers.nix
filesystem.nix
fixed-points.nix lib.compose{Many,}Extensions: Make compatible with nix flake check 2021-08-26 09:12:17 -04:00
flake.nix Fix import path. 2021-08-14 14:46:00 -05:00
generators.nix Merge pull request #131205 from Ma27/showdefs-overflow 2021-09-29 11:03:31 +02:00
kernel.nix
licenses.nix licenses: add CAPEC 2021-10-15 23:10:34 +02:00
lists.nix lib/lists: mutuallyExclusive function optimization 2021-11-01 16:29:01 -04:00
meta.nix lib.meta: introduce availableOn 2021-04-02 19:20:23 +08:00
minver.nix
modules.nix lib.modules: add mkDerivedConfig 2021-11-15 07:03:41 -05:00
options.nix modules: Add visible = "shallow" to hide only sub-options 2021-11-01 09:34:07 +01:00
sources.nix lib.cleanSource: ignore sockets 2021-09-17 10:03:00 +00:00
strings-with-deps.nix
strings.nix lib: fix escapeXML example in documentation 2021-11-02 22:43:25 +01:00
trivial.nix lib.warn: Add NIX_ABORT_ON_WARN for call traces 2021-10-13 22:43:06 +02:00
types.nix lib.evalModules: Add extendModules and type to result 2021-11-01 09:34:07 +01:00
versions.nix
zip-int-bits.nix