lib: Use mkRel

This commit is contained in:
Tom Hubrecht 2023-05-22 15:36:53 +02:00
parent d9f7a944af
commit 4c6154bd39

View file

@ -11,7 +11,9 @@ trivial // (with trivial; rec {
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 */
getAllKeys = names: builtins.concatLists (builtins.map getKeys names);