Unverified Commit 6c9f79c1 authored by Lin Jian's avatar Lin Jian
Browse files

melpaBuild: add doc and default value for recipe

parent 428dfcb0
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -35,8 +35,9 @@ in
  pname
  /*
    ename: Original Emacs package name, possibly containing special symbols.
    Default: pname
  */
, ename ? null
, ename ? pname
, version
  /*
    commit: Optional package history commit.
@@ -45,22 +46,22 @@ in
    the build process.
  */
, commit ? (args.src.rev or "unknown")
, recipe
  /*
    recipe: Optional MELPA recipe.
    Default: a minimal but not accurate recipe
    You need to provide your own recipe if you want to set :files.
  */
, recipe ? (writeText "${pname}-recipe" ''(${ename} :fetcher git :url "")'')
, meta ? {}
, ...
}@args:

genericBuild ({

  ename =
    if ename == null
    then pname
    else ename;

  elpa2nix = ./elpa2nix.el;
  melpa2nix = ./melpa2nix.el;

  inherit packageBuild commit;
  inherit packageBuild commit ename recipe;

  preUnpack = ''
    mkdir -p "$NIX_BUILD_TOP/recipes"