diff options
author | Silvan Mosberger <infinisil@icloud.com> | 2018-04-06 18:51:10 +0200 |
---|---|---|
committer | John Ericson <Ericson2314@yahoo.com> | 2018-04-07 13:21:49 -0400 |
commit | e1dee4efcbffc72260025078bf8297a3b732509c (patch) | |
tree | 567b274abbd1dc708037ea7f9933bce98671167b /pkgs/games/enyo-doom | |
parent | 95ece9efe5104522ed024e3858d46f17bc6aaf16 (diff) | |
download | nixlib-e1dee4efcbffc72260025078bf8297a3b732509c.tar nixlib-e1dee4efcbffc72260025078bf8297a3b732509c.tar.gz nixlib-e1dee4efcbffc72260025078bf8297a3b732509c.tar.bz2 nixlib-e1dee4efcbffc72260025078bf8297a3b732509c.tar.lz nixlib-e1dee4efcbffc72260025078bf8297a3b732509c.tar.xz nixlib-e1dee4efcbffc72260025078bf8297a3b732509c.tar.zst nixlib-e1dee4efcbffc72260025078bf8297a3b732509c.zip |
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 = ...; }
Diffstat (limited to 'pkgs/games/enyo-doom')
0 files changed, 0 insertions, 0 deletions