Add test/shell.nix files for Emacs 26 & HEAD

This commit is contained in:
Henrik Lissner 2020-01-09 19:46:48 -05:00
parent 59a6cb72be
commit 18be6cd37b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 71 additions and 0 deletions

24
test/shell.head.nix Normal file
View file

@ -0,0 +1,24 @@
# Builds an sandbox for Doom Emacs with Emacs HEAD (27/28). Warning: it compiles
# Emacs; this takes a while!
#
# To create a doom environment w/ Emacs 27/28 with the test config:
#
# nix-shell shell.head.nix
#
# Or from a custom DOOMDIR:
#
# nix-shell --argstr doomdir ~/.config/doom
{ emacsdir ? "$(pwd)/../"
, doomdir ? "$(pwd)"
, doomlocaldir ? "$(pwd)/.local.nix.head" }:
import ./shell.nix rec {
pkgs = import <nixpkgs> {
overlays = [
(import (builtins.fetchTarball https://github.com/nix-community/emacs-overlay/archive/master.tar.gz))
];
};
emacs = pkgs.emacsGit;
inherit emacsdir doomdir doomlocaldir;
}