cask: Fix cask usage

Without python as a dependency I only get the following error:
/usr/bin/env: ‘python’: No such file or directory
This commit is contained in:
Elis Hirwing 2019-09-21 11:43:17 +02:00
parent 859a32bfdb
commit 4f297c2b6f
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
1 changed files with 6 additions and 3 deletions

View File

@ -10,10 +10,15 @@ stdenv.mkDerivation rec {
}; };
doCheck = true; doCheck = true;
nativeBuildInputs = [ emacsPackages.emacs ];
buildInputs = with emacsPackages; [ buildInputs = with emacsPackages; [
s f dash ansi ecukes servant ert-runner el-mock s f dash ansi ecukes servant ert-runner el-mock
noflet ert-async shell-split-string git package-build noflet ert-async shell-split-string git package-build
] ++ [
python
]; ];
buildPhase = '' buildPhase = ''
emacs --batch -L . -f batch-byte-compile cask.el cask-cli.el emacs --batch -L . -f batch-byte-compile cask.el cask-cli.el
''; '';
@ -38,11 +43,9 @@ stdenv.mkDerivation rec {
Cask can also be used to manage dependencies for your local Emacs configuration. Cask can also be used to manage dependencies for your local Emacs configuration.
''; '';
homepage = https://cask.readthedocs.io/en/latest/index.html; homepage = "https://cask.readthedocs.io/en/latest/index.html";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ maintainers.flexw ]; maintainers = [ maintainers.flexw ];
}; };
nativeBuildInputs = [ emacsPackages.emacs python ];
} }