1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/lib
Silvan Mosberger e1dee4efcb lib: make extensible
This allows the lib fixed point to be extended with

  myLib = lib.extend (self: super: {
    foo = "foo";
  })

With this it's possible to have the new modified lib attrset available to all
modules when using evalModules

  myLib.evalModules {
    modules = [ ({ lib, ... }: {
      options.bar = lib.mkOption {
	default = lib.foo;
      };
    }) ];
  }

  => { config = { bar = "foo"; ... }; options = ...; }
2018-04-07 13:21:49 -04:00
..
systems libseccomp: Disable only on RISC-V if Linux. 2018-03-27 08:16:24 -04:00
tests lib/generators: introduce a sane default for mkValueString 2018-03-29 16:53:06 +02:00
attrsets.nix
composable-derivation.nix
customisation.nix
debug.nix
default.nix lib: make extensible 2018-04-07 13:21:49 -04:00
deprecated.nix
fetchers.nix
filesystem.nix
fixed-points.nix
generators.nix lib/generators: introduce a sane default for mkValueString 2018-03-29 16:53:06 +02:00
licenses.nix
lists.nix
meta.nix kexectools: Disable only on RISC-V if Linux. 2018-03-27 08:15:07 -04:00
minver.nix
modules.nix lib: make extensible 2018-04-07 13:21:49 -04:00
options.nix
sources.nix
strings-with-deps.nix
strings.nix
trivial.nix
types.nix
versions.nix