emacsPackagesFor: Internalise trivialBuild/melpaBuild

I want less strangeness that's not obviously overrideable.
This commit is contained in:
adisbladis 2021-02-24 14:54:25 +01:00
parent 9647372202
commit b673be8336
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7
2 changed files with 8 additions and 10 deletions

View file

@ -21952,14 +21952,6 @@ in
inherit fetchFromGitHub fetchurl;
inherit emacs texinfo makeWrapper runCommand writeText;
inherit (xorg) lndir;
trivialBuild = callPackage ../build-support/emacs/trivial.nix {
inherit emacs;
};
melpaBuild = callPackage ../build-support/emacs/melpa.nix {
inherit emacs;
};
};
inherit (gnome3) empathy;

View file

@ -35,14 +35,20 @@
{ lib, newScope, stdenv, fetchurl, fetchFromGitHub, runCommand, writeText
, emacs, texinfo, lndir, makeWrapper
, trivialBuild
, melpaBuild
, pkgs
}:
let
trivialBuild = pkgs.callPackage ../build-support/emacs/trivial.nix {
inherit emacs;
};
melpaBuild = pkgs.callPackage ../build-support/emacs/melpa.nix {
inherit emacs;
};
mkElpaPackages = import ../applications/editors/emacs-modes/elpa-packages.nix {
inherit lib stdenv texinfo writeText;
};