generateLuarocksConfig: add defaults to ease its usage

This commit is contained in:
Matthieu Coudron 2023-07-09 21:47:13 +02:00
parent c2676d1f74
commit 54ca335a15

View File

@ -82,11 +82,11 @@ rec {
};
*/
generateLuarocksConfig = {
externalDeps
externalDeps ? []
# a list of lua derivations
, requiredLuaRocks
, requiredLuaRocks ? []
, extraVariables ? {}
, rocksSubdir
, rocksSubdir ? "rocks-subdir"
}: let
rocksTrees = lib.imap0
(i: dep: {