about summary refs log blame commit diff
path: root/users/wpcarro/emacs/pkgs/symbol/default.nix
blob: 9334697e3203c0413446492e0d89151cdf59b6ee (plain) (tree)























                                                                          
{ 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
  '';
})