melpaBuild: add files parameter to specify :files of recipe

This commit is contained in:
Lin Jian 2024-05-31 21:05:49 +08:00
parent 6c9f79c133
commit 7f5aedecb5
No known key found for this signature in database
GPG Key ID: A6698D36434F75A5

View File

@ -47,11 +47,19 @@ in
*/ */
, commit ? (args.src.rev or "unknown") , commit ? (args.src.rev or "unknown")
/* /*
recipe: Optional MELPA recipe. files: Optional recipe property specifying the files used to build the package.
Default: a minimal but not accurate recipe If null, do not set it in recipe, keeping the default upstream behaviour.
You need to provide your own recipe if you want to set :files. Default: null
*/ */
, recipe ? (writeText "${pname}-recipe" ''(${ename} :fetcher git :url "")'') , files ? null
/*
recipe: Optional MELPA recipe.
Default: a minimally functional recipe
*/
, recipe ? (writeText "${pname}-recipe" ''
(${ename} :fetcher git :url ""
${lib.optionalString (files != null) ":files ${files}"})
'')
, meta ? {} , meta ? {}
, ... , ...
}@args: }@args: