tvl-depot/users/wpcarro/emacs/pkgs/bytes/default.nix
William Carroll bbad770cf2 feat(wpcarro/emacs): Package bytes.el
Another meh package, but let's finish the job and package it up.

Change-Id: I7852a776c93c8c6717878a5ee0742287d2d23052
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7394
Reviewed-by: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
2022-11-25 18:43:30 +00:00

25 lines
574 B
Nix

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