about summary refs log tree commit diff
path: root/users/wpcarro/emacs/pkgs/vector/default.nix
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2022-11-25T06·26-0800
committerwpcarro <wpcarro@gmail.com>2022-11-25T07·27+0000
commit40eca908574a20caaaa61de6ea63db294dc85ab3 (patch)
tree60042d0d18f21a7f43d2fef9b2e94b36bf6e9318 /users/wpcarro/emacs/pkgs/vector/default.nix
parentcc411ec60a529fb32e1adaa9c250e30bea53a58b (diff)
feat(wpcarro/emacs): Package vector.el r/5315
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>
Diffstat (limited to 'users/wpcarro/emacs/pkgs/vector/default.nix')
-rw-r--r--users/wpcarro/emacs/pkgs/vector/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/users/wpcarro/emacs/pkgs/vector/default.nix b/users/wpcarro/emacs/pkgs/vector/default.nix
new file mode 100644
index 000000000000..c0a475aaaa82
--- /dev/null
+++ b/users/wpcarro/emacs/pkgs/vector/default.nix
@@ -0,0 +1,21 @@
+{ 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
+  '';
+})