git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #44138 from ttuegel/emacs-packages/hindent

hindent: build Emacs package with latest Melpa recipe

commitc836833c0125d31f5ec11e5121ba73f89ec4b9fa authorThomas Tuegel <ttuegel@secure.mailbox.org> dateThu 26 Jul 2018, 15:52 (8 years ago) parent62dca7c4f58376
3 files changed+16−17
pkgs/applications/editors/emacs-modes/melpa-packages.nix+8 pkgs/applications/editors/emacs-modes/melpa-stable-packages.nix+8 pkgs/top-level/emacs-packages.nix−17
pkgs/applications/editors/emacs-modes/melpa-packages.nix+8
@@ -94,6 +94,14 @@ self:
9494 # Expects bash to be at /bin/bash
9595 helm-rtags = markBroken super.helm-rtags;
9696
97+ # Build same version as Haskell package
98+ hindent = super.hindent.overrideAttrs (attrs: {
99+ version = external.hindent.version;
100+ src = external.hindent.src;
101+ packageRequires = [ self.haskell-mode ];
102+ propagatedUserEnvPkgs = [ external.hindent ];
103+ });
104+
97105 # upstream issue: missing file header
98106 ido-complete-space-or-hyphen = markBroken super.ido-complete-space-or-hyphen;
99107
pkgs/applications/editors/emacs-modes/melpa-stable-packages.nix+8
@@ -108,6 +108,14 @@ self:
108108 # Expects bash to be at /bin/bash
109109 helm-rtags = markBroken super.helm-rtags;
110110
111+ # Build same version as Haskell package
112+ hindent = super.hindent.overrideAttrs (attrs: {
113+ version = external.hindent.version;
114+ src = external.hindent.src;
115+ packageRequires = [ self.haskell-mode ];
116+ propagatedUserEnvPkgs = [ external.hindent ];
117+ });
118+
111119 # upstream issue: missing file header
112120 ido-complete-space-or-hyphen = markBroken super.ido-complete-space-or-hyphen;
113121
pkgs/top-level/emacs-packages.nix−17
@@ -298,23 +298,6 @@ let
298298
299299 helm-words = callPackage ../applications/editors/emacs-modes/helm-words { };
300300
301− hindent = melpaBuild rec {
302− pname = "hindent";
303− version = external.hindent.version;
304− src = external.hindent.src;
305− packageRequires = [ haskell-mode ];
306− propagatedUserEnvPkgs = [ external.hindent ];
307− recipe = writeText "recipe" ''
308− (hindent
309− :repo "commercialhaskell/hindent" :fetcher github
310− :files ("elisp/*.el"))
311− '';
312− meta = {
313− description = "Indent haskell code using the \"hindent\" program";
314− license = bsd3;
315− };
316− };
317−
318301 icicles = callPackage ../applications/editors/emacs-modes/icicles { };
319302
320303 redshank = callPackage ../applications/editors/emacs-modes/redshank { };