25 lines
508 B
Nix
25 lines
508 B
Nix
|
{ 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
|
||
|
'';
|
||
|
})
|