about summary refs log tree commit diff
path: root/users/wpcarro/emacs/pkgs/symbol/default.nix
blob: 9334697e3203c0413446492e0d89151cdf59b6ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ pkgs, depot, ... }:

let
  symbol = pkgs.callPackage
    ({ emacsPackages }:
      emacsPackages.trivialBuild {
        pname = "symbol";
        version = "1.0.0";
        src = ./symbol.el;
        packageRequires = [ ];
      })
    { };

  emacs = (pkgs.emacsPackagesFor pkgs.emacs28).emacsWithPackages (epkgs: [
    symbol
  ]);
in
symbol.overrideAttrs (_old: {
  doCheck = true;
  checkPhase = ''
    ${emacs}/bin/emacs -batch \
      -l ert -l ${./tests.el} -f ert-run-tests-batch-and-exit
  '';
})