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