You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.org
+15-6Lines changed: 15 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -134,30 +134,39 @@ Note: Nixpkgs includes an equivalent function in =pkgs/applications/editors/emac
134
134
Note that this function may not completely support all of the reference specs.
135
135
136
136
**** Expanding the files spec a MELPA recipe
137
-
=expandMelpaRecipeFiles= function expands =:files= spec in a recipe under a given directory:
137
+
=expandMelpaRecipeFiles= function expands =:files= spec in a recipe under a given directory.
138
+
This is equivalent to =package-build-expand-file-specs= function in [[https://github.com/melpa/package-build][package-build]], which is used to build packages on MELPA:
It returns a list of matching files relative from the directory:
144
+
The first argument must be a path to a directory, and the second argument can be either a list or =null=. When =null= is given as a spec, the default spec of MELPA is used.
145
+
146
+
It returns an attribute set of matching files relative from the directory:
144
147
145
148
#+begin_src nix
146
-
["hello.el" "hello-utils.el"]
149
+
{
150
+
"hello.el" = "hello.el";
151
+
"hello-utils.el" = "hello-utils.el";
152
+
}
147
153
#+end_src
148
154
149
-
The first argument must be a path to a directory, and the second argument can be either a list or =null=. When =null= is given as a spec, the default spec of MELPA is used.
0 commit comments