cask: fix incorrect exec

This commit is contained in:
Benjamin Andresen 2018-06-23 13:01:18 +02:00 committed by Herwig Hochleitner
parent b07deda268
commit e805874891

View File

@ -1,11 +1,10 @@
{ emacsPackagesNg, writeScriptBin }:
{ emacsPackages, writeScriptBin }:
let
emacs = emacsPackagesNg.emacsWithPackages (epkgs: [ epkgs.cask-package-toolset ]);
cpt = emacsPackagesNg.cask-package-toolset;
cask = emacsPackages.cask;
in writeScriptBin "cask" ''
#!/bin/sh
exec ${emacs}/bin/emacs --script ${cpt}/share/emacs/site-lisp/elpa/cask-package-toolset-${cpt.version}/cask-package-toolset.el -- "$@"
exec ${cask}/bin/cask $@
''