nixpkgs/pkgs/development/tools/build-managers/cask/default.nix
Herwig Hochleitner 588fe10bae cask: fix evaluation error
this was due to an override `emacsPackages = emacsPackagesNg` on my
system.

5bede1a252
2018-02-16 01:18:35 +01:00

12 lines
351 B
Nix

{ emacsPackagesNg, writeScriptBin }:
let
emacs = emacsPackagesNg.emacsWithPackages (epkgs: [ epkgs.cask-package-toolset ]);
cpt = emacsPackagesNg.cask-package-toolset;
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 -- "$@"
''