about summary refs log tree commit diff
path: root/third_party/emacs/exwm/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-01-10T13·17+0300
committertazjin <mail@tazj.in>2021-01-10T13·32+0000
commitbf697b4b9d6e2d6a7db0c2573dac52f3efbb2872 (patch)
treeeb36ed20fcbd713e75fbd4013392afaade0075d2 /third_party/emacs/exwm/default.nix
parent4e34276b699c2c606823cb6c7762b74ca575d85d (diff)
refactor(3p/exwm): Inline build instructions instead of overriding r/2068
Change-Id: If16a57e8dd905c8f709bee70dac575509dd22b02
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2343
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/emacs/exwm/default.nix')
-rw-r--r--third_party/emacs/exwm/default.nix21
1 files changed, 18 insertions, 3 deletions
diff --git a/third_party/emacs/exwm/default.nix b/third_party/emacs/exwm/default.nix
index e1680a37d93b..b9941e83b01a 100644
--- a/third_party/emacs/exwm/default.nix
+++ b/third_party/emacs/exwm/default.nix
@@ -1,7 +1,22 @@
 # EXWM is present in nixpkgs and we do not (currently) intend to
 # change the code structure, so the existing drv can be reused.
-{ pkgs, ... }:
+{ pkgs, lib, ... }:
 
-pkgs.emacsPackages.exwm.overrideAttrs(_: {
+let
+  inherit (pkgs.emacsPackages) melpaBuild xelb;
+in melpaBuild {
+  pname = "exwm";
+  ename = "exwm";
+  version = "0.24";
   src = ./.;
-})
+  packageRequires = [ xelb ];
+
+  recipe = builtins.toFile "recipe.el" ''
+    (exwm :fetcher github :repo "ch11ng/exwm")
+  '';
+
+  meta = {
+    homepage = "https://elpa.gnu.org/packages/exwm.html";
+    license = lib.licenses.free;
+  };
+}