melpaBuild: add doc and default value for recipe

This commit is contained in:
Lin Jian 2024-05-31 17:40:29 +08:00
parent 428dfcb007
commit 6c9f79c133
No known key found for this signature in database
GPG Key ID: A6698D36434F75A5

View File

@ -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"