diff options
| author | Sam Cedarbaum <scedarbaum@gmail.com> | 2021-04-15 00:38:23 -0400 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2021-04-28 14:19:13 +0200 |
| commit | 1f3995ec81cb110eeef885c9921ecfefac07bdf3 (patch) | |
| tree | a99a10a2e564408adfba380f73e66092ca551ae4 /t | |
| parent | 3098bf68f258e088ac0d3307398d99d8c2edba41 (diff) | |
Install Emacs with libegit in CI
Replace the `setup-emacs' GitHub action with a custom Nix install
(defined in t/default.nix) that bundles Emacsen with libegit and
its other dependencies.
Diffstat (limited to 't')
| -rw-r--r-- | t/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/default.nix b/t/default.nix new file mode 100644 index 0000000..cf3b926 --- /dev/null +++ b/t/default.nix @@ -0,0 +1,18 @@ +let + emacs-overlay = import (builtins.fetchTarball { url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz; }); + emacs-ci = import (builtins.fetchTarball { url = https://github.com/purcell/nix-emacs-ci/archive/master.tar.gz; }); + + pkgs = import <nixpkgs> { overlays = [ emacs-overlay ]; }; +in +builtins.mapAttrs + (version: emacs: + (pkgs.emacsPackagesGen emacs).emacsWithPackages + (emacsPackages: [ + emacsPackages.dash + emacsPackages.transient + ] ++ (with emacsPackages.melpaPackages; [ + libgit + with-editor + ]) + )) + emacs-ci |
