1 # builder for Emacs packages built for packages.el
3 { lib, stdenv, emacs, texinfo, writeText }:
6 genericBuild = import ./generic.nix { inherit lib stdenv emacs texinfo writeText; };
7 libBuildHelper = import ./lib-build-helper.nix;
11 libBuildHelper.extendMkDerivation' genericBuild (finalAttrs:
21 elpa2nix = args.elpa2nix or ./elpa2nix.el;
25 installPhase = args.installPhase or ''
28 emacs --batch -Q -l "$elpa2nix" \
29 -f elpa2nix-install-package \
30 "$src" "$out/share/emacs/site-lisp/elpa"
36 homepage = args.src.meta.homepage or "https://elpa.gnu.org/packages/${pname}.html";