diff --git a/pkgs/applications/editors/emacs/elisp-packages/elpa-devel-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/elpa-devel-packages.nix index c6b398ad29972..a0fdf0e1cbc72 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/elpa-devel-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/elpa-devel-packages.nix @@ -22,7 +22,7 @@ formats commits for you. */ -{ lib, stdenv, texinfo, writeText, gcc, pkgs, buildPackages }: +{ lib, pkgs, buildPackages }: self: let @@ -32,11 +32,6 @@ self: let }); }; - elpaBuild = import ../build-support/elpa.nix { - inherit lib stdenv texinfo writeText gcc; - inherit (self) emacs; - }; - # Use custom elpa url fetcher with fallback/uncompress fetchurl = buildPackages.callPackage ./fetchelpa.nix { }; @@ -99,6 +94,6 @@ self: let elpaDevelPackages = super // overrides; - in elpaDevelPackages // { inherit elpaBuild; }); + in elpaDevelPackages); in generateElpa { } diff --git a/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix index aba33d0f13bf1..8bffb346dedd5 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix @@ -22,7 +22,7 @@ formats commits for you. */ -{ lib, stdenv, texinfo, writeText, gcc, pkgs, buildPackages }: +{ lib, pkgs, buildPackages }: self: let @@ -32,11 +32,6 @@ self: let }); }; - elpaBuild = import ../build-support/elpa.nix { - inherit lib stdenv texinfo writeText gcc; - inherit (self) emacs; - }; - # Use custom elpa url fetcher with fallback/uncompress fetchurl = buildPackages.callPackage ./fetchelpa.nix { }; @@ -188,7 +183,7 @@ self: let elpaPackages = super // overrides; - in elpaPackages // { inherit elpaBuild; }); + in elpaPackages); in generateElpa { } diff --git a/pkgs/top-level/emacs-packages.nix b/pkgs/top-level/emacs-packages.nix index 383ba5d73008e..8231c1e10ebb8 100644 --- a/pkgs/top-level/emacs-packages.nix +++ b/pkgs/top-level/emacs-packages.nix @@ -24,12 +24,12 @@ let mkElpaDevelPackages = { pkgs, lib }: import ../applications/editors/emacs/elisp-packages/elpa-devel-packages.nix { - inherit (pkgs) stdenv texinfo writeText gcc pkgs buildPackages; + inherit (pkgs) pkgs buildPackages; inherit lib; }; mkElpaPackages = { pkgs, lib }: import ../applications/editors/emacs/elisp-packages/elpa-packages.nix { - inherit (pkgs) stdenv texinfo writeText gcc pkgs buildPackages; + inherit (pkgs) pkgs buildPackages; inherit lib; }; @@ -81,6 +81,10 @@ in makeScope pkgs'.newScope (self: makeOverridable ({ inherit (self) emacs; }; + elpaBuild = pkgs.callPackage ../applications/editors/emacs/build-support/elpa.nix { + inherit (self) emacs; + }; + melpaBuild = pkgs.callPackage ../applications/editors/emacs/build-support/melpa.nix { inherit (self) emacs; };