mirror of
https://github.com/nix-community/emacs-overlay.git
synced 2025-12-06 02:40:25 -08:00
Renamed packageFile arg to packageElisp for clarity
This commit is contained in:
parent
257557be07
commit
fa7e127f03
3 changed files with 7 additions and 7 deletions
|
|
@ -6,8 +6,8 @@ let
|
|||
(x: builtins.typeOf x == "string")
|
||||
(builtins.split _sep _s);
|
||||
|
||||
# Parse (all) Package-Requires elisp headers found in the input string
|
||||
# `packageFile` into a list of package name strings.
|
||||
# Parse (all) Package-Requires packageElisp headers found in the input string
|
||||
# `packageElisp` into a list of package name strings.
|
||||
#
|
||||
# Example inputs:
|
||||
#
|
||||
|
|
@ -19,9 +19,9 @@ let
|
|||
# => [ "dash" "pkg-info" ]
|
||||
# ;; Package-Requires: ((dash) (pkg-info "0.4"))
|
||||
# => [ "dash" "pkg-info" ]
|
||||
parsePackagesFromPackageRequires = packageFile:
|
||||
parsePackagesFromPackageRequires = packageElisp:
|
||||
let
|
||||
lines = splitString "\r?\n" packageFile;
|
||||
lines = splitString "\r?\n" packageElisp;
|
||||
requires =
|
||||
lib.concatMapStrings
|
||||
(line:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue