Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
60 lines
1.0 KiB
Nix
60 lines
1.0 KiB
Nix
# builder for Emacs packages built for packages.el
|
|
|
|
{
|
|
lib,
|
|
stdenv,
|
|
emacs,
|
|
texinfo,
|
|
}:
|
|
|
|
let
|
|
genericBuild = import ./generic.nix {
|
|
inherit
|
|
lib
|
|
stdenv
|
|
emacs
|
|
texinfo
|
|
;
|
|
};
|
|
|
|
in
|
|
|
|
lib.extendMkDerivation {
|
|
constructDrv = genericBuild;
|
|
extendDrvArgs =
|
|
finalAttrs:
|
|
|
|
{
|
|
pname,
|
|
dontUnpack ? true,
|
|
meta ? { },
|
|
...
|
|
}@args:
|
|
|
|
{
|
|
|
|
elpa2nix = args.elpa2nix or ./elpa2nix.el;
|
|
|
|
inherit dontUnpack;
|
|
|
|
installPhase =
|
|
args.installPhase or ''
|
|
runHook preInstall
|
|
|
|
emacs --batch -Q -l "$elpa2nix" \
|
|
-f elpa2nix-install-package \
|
|
"$src" "$out/share/emacs/site-lisp/elpa" \
|
|
${if finalAttrs.turnCompilationWarningToError then "t" else "nil"} \
|
|
${if finalAttrs.ignoreCompilationError then "t" else "nil"}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = args.src.meta.homepage or "https://elpa.gnu.org/packages/${pname}.html";
|
|
}
|
|
// meta;
|
|
};
|
|
|
|
}
|