From d385fd9111cc133784e0c31b1a5cfeea8a1c6668 Mon Sep 17 00:00:00 2001 From: Forkk Date: Mon, 13 Apr 2015 00:08:26 +0200 Subject: [PATCH] cask: fix issue with 'cask init' command Fix an issue where 'cask init' would fail due to missing template files. --- pkgs/applications/editors/emacs-modes/cask/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/editors/emacs-modes/cask/default.nix b/pkgs/applications/editors/emacs-modes/cask/default.nix index 90c32f0e2bc4..7d987e73b913 100644 --- a/pkgs/applications/editors/emacs-modes/cask/default.nix +++ b/pkgs/applications/editors/emacs-modes/cask/default.nix @@ -22,6 +22,11 @@ stdenv.mkDerivation rec { install -d "$out/bin" install bin/cask "$out/bin" + # We also need to install cask's templates in order for 'cask + # init' to work properly. + install -d "$out/templates" + install templates/* "$out/templates" + # In order to work with cask's hard coded file paths (during bootstrap), # we have to create these links. ln -s "$out/share/emacs/site-lisp/"* "$out"