about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-04-13T20·16+0200
committertazjin <mail@tazj.in>2021-04-13T20·26+0000
commitcf5b88173b75052d63d81ed9a3200abc73179e86 (patch)
tree73b6d665b2f450ae87a8446cb5b71185aa34d9f3
parent2f4ea13ca2a76641052216139cc6267ca959ae0d (diff)
feat(3p/overlays): Add bleeding-edge Emacs overlay r/2502
This adds adisbladis' Emacs overlay, which makes bleeding-edge
functionality such as native compilation of Elisp available.

Change-Id: I29861cb4da37bf8bf7fdb6fba5f2525c7a024356
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3002
Reviewed-by: adisbladis <adisbladis@gmail.com>
Tested-by: BuildkiteCI
-rw-r--r--third_party/nixpkgs/default.nix1
-rw-r--r--third_party/overlays/emacs.nix11
2 files changed, 12 insertions, 0 deletions
diff --git a/third_party/nixpkgs/default.nix b/third_party/nixpkgs/default.nix
index 86e1f3b31f46..345b61e2d4c5 100644
--- a/third_party/nixpkgs/default.nix
+++ b/third_party/nixpkgs/default.nix
@@ -58,5 +58,6 @@ in import nixpkgsSrc {
     stableOverlay
     depot.third_party.overlays.tvl
     depot.third_party.overlays.haskell
+    depot.third_party.overlays.emacs
   ];
 }
diff --git a/third_party/overlays/emacs.nix b/third_party/overlays/emacs.nix
new file mode 100644
index 000000000000..77d1cd6f7771
--- /dev/null
+++ b/third_party/overlays/emacs.nix
@@ -0,0 +1,11 @@
+# Emacs overlay from https://github.com/nix-community/emacs-overlay
+{ ... }:
+
+let
+  # from 2020-04-13
+  commit = "15ed1f372a83ec748ac824bdc5b573039c18b82f";
+  src = builtins.fetchTarball {
+    url = "https://github.com/nix-community/emacs-overlay/archive/${commit}.tar.gz";
+    sha256 = "0m4vb7p29rgbpaavwn9jjid1zz48k1l9za5gy3d8nadqjn7x4dm1";
+  };
+in import src