3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/build-managers/cask/default.nix
Herwig Hochleitner 5bede1a252 cask: init
cask is a build tool for emacs packages

cc @ttuegel @mdorman
2018-02-15 23:33:49 +01:00

12 lines
345 B
Nix

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