Merge pull request #123134 from seppeljordan/fix-cask
cask: Fix shebang of cask executable
This commit is contained in:
commit
265bc0552f
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, python3, emacs }:
|
||||
{ lib, stdenv, python3, emacs, bash }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cask";
|
||||
|
@ -13,15 +13,19 @@ stdenv.mkDerivation rec {
|
|||
noflet ert-async shell-split-string git package-build
|
||||
] ++ [
|
||||
python3
|
||||
bash
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
emacs --batch -L . -f batch-byte-compile cask.el cask-cli.el
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/templates
|
||||
mkdir -p $out/share/emacs/site-lisp/cask/bin
|
||||
|
@ -30,6 +34,7 @@ stdenv.mkDerivation rec {
|
|||
install -Dm644 templates/* $out/templates/
|
||||
touch $out/.no-upgrade
|
||||
ln -s $out/share/emacs/site-lisp/cask/bin/cask $out/bin/cask
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue