Unverified Commit 7f5aedec authored by Lin Jian's avatar Lin Jian
Browse files

melpaBuild: add files parameter to specify :files of recipe

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