tvl-depot/users/wpcarro/emacs/pkgs/vector/default.nix
William Carroll 40eca90857 feat(wpcarro/emacs): Package vector.el
Paying-off more packaging debt...

Change-Id: Ide641229d6c8efe70c0fd6c625d07aa1a3be98a0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7395
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
2022-11-25 07:27:43 +00:00

21 lines
471 B
Nix

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