Skip to content

Commit

Permalink
Merge pull request #178 from emacs-twist/expose-build-function
Browse files Browse the repository at this point in the history
Expose a function to build a single Emacs Lisp package
  • Loading branch information
akirak authored Sep 19, 2024
2 parents a830717 + 2981ad0 commit cc1e51e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,18 @@ in
(split "\n")
(filter (s: isString s && s != ""))
];

# A function that builds a single Emacs Lisp package. The argument should be
# an attribute set that takes the same form as an entry value in
# packageInputs. Most attributes for basic usage are self-explanatory, but it
# requires elispInputs, which is a list of derivations that contain Emacs Lisp
# source files in share/emacs/site-lisp directory and (optional)
# native-compiled libraries in share/emacs/native-lisp directory.
buildElispPackage =
pkgs:
pkgs.callPackage ../pkgs/emacs/build {
lib = import ../pkgs/build-support {
inherit inputs pkgs;
};
};
}

0 comments on commit cc1e51e

Please sign in to comment.