diff options
-rw-r--r-- | pkgs/applications/editors/emacs-modes/melpa-packages.nix | 4 | ||||
-rw-r--r-- | pkgs/top-level/emacs-packages.nix | 41 |
2 files changed, 4 insertions, 41 deletions
diff --git a/pkgs/applications/editors/emacs-modes/melpa-packages.nix b/pkgs/applications/editors/emacs-modes/melpa-packages.nix index 43086bbd1e68e..47cc7ce1c64f4 100644 --- a/pkgs/applications/editors/emacs-modes/melpa-packages.nix +++ b/pkgs/applications/editors/emacs-modes/melpa-packages.nix @@ -60,6 +60,10 @@ env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate --show-trace ../../../../ -A emacsPac # upstream issue: missing file header elmine = markBroken super.elmine; + elpy = super.elpy.overrideAttrs(old: { + propagatedUserEnvPkgs = old.propagatedUserEnvPkgs ++ [ external.elpy ]; + }); + evil-magit = super.evil-magit.overrideAttrs (attrs: { # searches for Git at build time nativeBuildInputs = diff --git a/pkgs/top-level/emacs-packages.nix b/pkgs/top-level/emacs-packages.nix index 22ce1d9120b92..95a3a7d34f4a6 100644 --- a/pkgs/top-level/emacs-packages.nix +++ b/pkgs/top-level/emacs-packages.nix @@ -129,47 +129,6 @@ let }; }; - elpy = melpaBuild rec { - pname = "elpy"; - version = external.elpy.version; - src = fetchFromGitHub { - owner = "jorgenschaefer"; - repo = pname; - rev = "39ea47c73f040ce8dcc1c2d2639ebc0eb57ab8c8"; - sha256 = "0q3av1qv4m6aj4bil608f688hjpr5px8zqnnrdqx784nz98rpjrs"; - }; - recipe = writeText "recipe" '' - (elpy :repo "jorgenschaefer/elpy" :fetcher github) - ''; - - patchPhase = '' - for file in elpy.el elpy-pkg.el; do - substituteInPlace $file \ - --replace "company \"0.8.2\"" "company \"${company.version}\"" \ - --replace "find-file-in-project \"3.3\"" "find-file-in-project \"${(melpaPackages self).find-file-in-project.version}\"" \ - --replace "highlight-indentation \"0.5.0\"" "highlight-indentation \"${highlight-indentation.version}\"" \ - --replace "pyvenv \"1.3\"" "pyvenv \"${pyvenv.version}\"" \ - --replace "yasnippet \"0.8.0\"" "yasnippet \"${yasnippet.version}\"" - done - ''; - - packageRequires = [ - company find-file-in-project highlight-indentation pyvenv yasnippet - ]; - - propagatedUserEnvPkgs = [ external.elpy ] ++ packageRequires; - - meta = { - description = "Emacs Python Development Environment"; - longDescription = '' - Elpy is an Emacs package to bring powerful Python editing to Emacs. - It combines a number of other packages, both written in Emacs Lisp as - well as Python. - ''; - license = gpl3Plus; - }; - }; - ess-R-object-popup = callPackage ../applications/editors/emacs-modes/ess-R-object-popup { }; |