From 1d8e3db9fff600d444644d3619da965e050290f5 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Tue, 29 Dec 2015 13:24:28 -0600 Subject: [PATCH] melpa-packages: use recipeFile --- pkgs/applications/editors/emacs-modes/melpa-packages.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/emacs-modes/melpa-packages.nix b/pkgs/applications/editors/emacs-modes/melpa-packages.nix index 891bb5df5672..16f147695914 100644 --- a/pkgs/applications/editors/emacs-modes/melpa-packages.nix +++ b/pkgs/applications/editors/emacs-modes/melpa-packages.nix @@ -36,10 +36,14 @@ let or unknownFetcher; args = builtins.removeAttrs recipe.fetch [ "tag" ]; src = fetch args; + recipeFile = fetchurl { + url = "https://raw.githubusercontent.com/milkypostman/melpa/${recipe.recipe.commit}/recipes/${name}"; + inherit (recipe.recipe) sha256; + }; in melpaBuild { pname = name; inherit (recipe) version; - inherit src; + inherit recipeFile src; packageRequires = let lookupDep = d: self."${d}" or null; in map lookupDep recipe.deps;