melpaBuild: add doc and default value for commit

This commit is contained in:
Lin Jian 2024-05-31 16:38:52 +08:00
parent 732fd40ed0
commit 428dfcb007
No known key found for this signature in database
GPG Key ID: A6698D36434F75A5

View File

@ -38,6 +38,13 @@ in
*/
, ename ? null
, version
/*
commit: Optional package history commit.
Default: src.rev or "unknown"
This will be written into the generated package but it is not needed during
the build process.
*/
, commit ? (args.src.rev or "unknown")
, recipe
, meta ? {}
, ...
@ -53,7 +60,7 @@ genericBuild ({
elpa2nix = ./elpa2nix.el;
melpa2nix = ./melpa2nix.el;
inherit packageBuild;
inherit packageBuild commit;
preUnpack = ''
mkdir -p "$NIX_BUILD_TOP/recipes"