forked from DGNum/infrastructure
lib: Use mkRel
This commit is contained in:
parent
d9f7a944af
commit
4c6154bd39
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,9 @@ trivial // (with trivial; rec {
|
||||||
|
|
||||||
mkImports = root: builtins.map (mkImport root);
|
mkImports = root: builtins.map (mkImport root);
|
||||||
|
|
||||||
getKeys = name: builtins.filter (k: k != "") (lib.splitString "\n" (builtins.readFile (../keys + "/${name}.keys")));
|
getKeys = name: builtins.filter
|
||||||
|
(k: k != "")
|
||||||
|
(lib.splitString "\n" (builtins.readFile (mkRel ../keys "${name}.keys")));
|
||||||
|
|
||||||
/* List version of getKeys */
|
/* List version of getKeys */
|
||||||
getAllKeys = names: builtins.concatLists (builtins.map getKeys names);
|
getAllKeys = names: builtins.concatLists (builtins.map getKeys names);
|
||||||
|
|
Loading…
Reference in a new issue