fix(writeElispBin): Use emacsPackagesNg

Ng is used by my Emacs derivation. I don't actually know what they do
differently, but it seems sensible to use the same one in both places.
This commit is contained in:
Vincent Ambo 2019-12-14 12:49:18 +00:00
parent 2b80265a1f
commit bd7c9e4b5a

View file

@ -3,10 +3,10 @@
{ name, src, deps ? (_: []), emacs ? pkgs.third_party.emacs26-nox }:
let
inherit (pkgs.third_party) emacsPackagesFor writeTextFile;
inherit (pkgs.third_party) emacsPackagesNg emacsPackagesNgGen writeTextFile;
inherit (builtins) isString toFile;
finalEmacs = (emacsPackagesFor emacs).emacsWithPackages deps;
finalEmacs = (emacsPackagesNgGen emacs).emacsWithPackages deps;
srcFile = if isString src
then toFile "${name}.el" src