From c344e03705e4fcd8bd1d89665a7408ae07741cfb Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 17 Aug 2020 10:58:57 +0100 Subject: [PATCH] chore(3p): Provide Emacs 27.1 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 --- third_party/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/third_party/default.nix b/third_party/default.nix index 7cd3b9f2c..14fbe80e7 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.