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
This commit is contained in:
parent
fb7f461cff
commit
bbad770cf2
3 changed files with 62 additions and 37 deletions
25
users/wpcarro/emacs/pkgs/bytes/default.nix
Normal file
25
users/wpcarro/emacs/pkgs/bytes/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ 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
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue