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

25 lines
508 B
Nix
Raw Normal View History

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