Skip to content

Commit

Permalink
cask: fix incorrect exec
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyandresen authored and bendlas committed Jul 14, 2018
1 parent b07deda commit e805874
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkgs/development/tools/build-managers/cask/default.nix
Original file line number Diff line number Diff line change
@@ -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 $@
''

0 comments on commit e805874

Please sign in to comment.