diff options
author | William Carroll <wpcarro@gmail.com> | 2022-11-25T06·20-0800 |
---|---|---|
committer | wpcarro <wpcarro@gmail.com> | 2022-11-25T18·43+0000 |
commit | bbad770cf2e569795715c9ec3c144812f126d870 (patch) | |
tree | dbc1939d6880169f8469bf06e79a5371133a38ed /users/wpcarro/emacs/pkgs/bytes/default.nix | |
parent | fb7f461cff099c7eb742f50fec72d8d73191bc06 (diff) |
feat(wpcarro/emacs): Package bytes.el r/5321
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
Diffstat (limited to 'users/wpcarro/emacs/pkgs/bytes/default.nix')
-rw-r--r-- | users/wpcarro/emacs/pkgs/bytes/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/users/wpcarro/emacs/pkgs/bytes/default.nix b/users/wpcarro/emacs/pkgs/bytes/default.nix new file mode 100644 index 000000000000..4e9f52d9b927 --- /dev/null +++ b/users/wpcarro/emacs/pkgs/bytes/default.nix @@ -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 + ''; +}) |