From 59cd0bbd8b76dc886ca4d1e3d6c613d7393a8fd3 Mon Sep 17 00:00:00 2001
From: Vincent Ambo <mail@tazj.in>
Date: Thu, 31 May 2018 13:42:39 +0200
Subject: [PATCH] feat(pkgs): Cherry-pick emacs26 from nixpkgs master

---
 packages.nix | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/packages.nix b/packages.nix
index 872f27328..a0163eedc 100644
--- a/packages.nix
+++ b/packages.nix
@@ -26,6 +26,12 @@ let
     rev    = "5da85431fb1df4fb3ac36730b2591ccc9bdf5c21";
     sha256 = "0pc15wh5al9dmhcj29gwqir3wzpyk2nrplibr5xjk2bdvw6sv6c1";
   };
+
+  # Temporarily import a commit from master directly to pick emacs26.
+  # Should be removed once that update is in nixos-unstable.
+  master = import (fetchTarball {
+    url = "https://github.com/NixOS/nixpkgs/archive/288ce0cb845c03fafa1f3c673440e9922f22131a.tar.gz";
+  }) {};
 in {
   # Configure the Nix package manager
   nixpkgs = {
@@ -38,6 +44,7 @@ in {
 
       kontemplate = unstable.kontemplate;
       mq-cli = unstable.mq-cli;
+      emacs = master.emacs;
 
       # Override various Emacs packages from unstable:
       pinnedEmacs = with unstable.emacsPackagesNg; {