tvl-depot/users/wpcarro/emacs/pkgs/math/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
641 B
Nix
Raw Normal View History

{ pkgs, depot, ... }:
let
math = pkgs.callPackage
({ emacsPackages }:
emacsPackages.trivialBuild {
pname = "math";
version = "1.0.0";
src = ./math.el;
packageRequires =
(with emacsPackages; [
dash
]) ++
(with depot.users.wpcarro.emacs.pkgs; [
maybe
]);
})
{ };
emacs = (pkgs.emacsPackagesFor pkgs.emacs28).emacsWithPackages (epkgs: [
math
]);
in
math.overrideAttrs (_old: {
doCheck = true;
checkPhase = ''
${emacs}/bin/emacs -batch \
-l ert -l ${./tests.el} -f ert-run-tests-batch-and-exit
'';
})