1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 08:02:21 +03:00

Merge pull request #499 from ProducerMatt/lib-notes

📝 devos: clarify how to use /lib/
This commit is contained in:
Parthiv Seetharaman 2023-01-25 08:48:38 -08:00 committed by GitHub
commit 0595ae70cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,2 +1,12 @@
{lib}: {lib}:
lib.makeExtensible (self: {}) lib.makeExtensible (self:
let
callLibs = file: import file { lib = self; };
in
rec {
## Define your own library functions here!
#id = x: x;
## Or in files, containing functions that take {lib}
#foo = callLibs ./foo.nix;
## In configs, they can be used under "lib.our"
})