about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-08-17T09·58+0100
committertazjin <mail@tazj.in>2020-08-17T18·14+0000
commitc344e03705e4fcd8bd1d89665a7408ae07741cfb (patch)
tree4cee23651ae0fe19f80b656fd8dcf6174226ea7a /third_party
parent708b0e1c2e13b07055f9cd0f96c0414f6b54e90c (diff)
chore(3p): Provide Emacs 27.1 r/1665
This is now available in the upstream channel, and I need it on one
machine for $reasons.

Normally the Emacs attribute is versioned to make it clear which
version we're dealing with, but not in this case. I've added an assert
to check that it is indeed 27.

Change-Id: I827df0d36350066bf4e177150d32af0c8d123b9b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1764
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/default.nix b/third_party/default.nix
index 7cd3b9f2c9..14fbe80e73 100644
--- a/third_party/default.nix
+++ b/third_party/default.nix
@@ -218,6 +218,15 @@ in exposed.lib.fix(self: exposed // {
   clangStdenv = nixpkgs.llvmPackages_10.stdenv;
   stdenv = nixpkgs.llvmPackages_10.stdenv;
 
+  # Provide Emacs 27
+  #
+  # The assert exists because the name of the attribute is unversioned
+  # (which is different from previous versions).
+  emacs27 = assert ((exposed.lib.versions.major nixpkgs.emacs.version) == "27");
+    nixpkgs.emacs;
+  emacs27-nox = assert ((exposed.lib.versions.major nixpkgs.emacs.version) == "27");
+    nixpkgs.emacs-nox;
+
   # The Go authors have released a version of Go (in alpha) that has a
   # type system. This makes it available, specifically for use with
   # //nix/buildTypedGo.