2019-04-11 03:47:30 +00:00
|
|
|
{ stdenv, fetchurl, python, emacsPackagesNg }:
|
2019-03-31 21:18:17 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cask-${version}";
|
|
|
|
version = "0.8.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/cask/cask/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "02f8bb20b33b23fb11e7d2a1d282519dfdb8b3090b9672448b8c2c2cacd3e478";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
2019-04-11 03:47:30 +00:00
|
|
|
buildInputs = with emacsPackagesNg; [
|
|
|
|
s f dash ansi ecukes servant ert-runner el-mock
|
|
|
|
noflet ert-async shell-split-string git package-build
|
|
|
|
];
|
2019-04-11 00:37:04 +00:00
|
|
|
buildPhase = ''
|
|
|
|
emacs --batch -L . -f batch-byte-compile cask.el cask-cli.el
|
|
|
|
'';
|
2019-03-31 21:18:17 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/templates
|
2019-04-11 00:37:04 +00:00
|
|
|
mkdir -p $out/share/emacs/site-lisp/cask/bin
|
|
|
|
install -Dm644 *.el *.elc $out/share/emacs/site-lisp/cask
|
|
|
|
install -Dm755 bin/cask $out/share/emacs/site-lisp/cask/bin
|
2019-03-31 21:18:17 +00:00
|
|
|
install -Dm644 templates/* $out/templates/
|
|
|
|
touch $out/.no-upgrade
|
2019-04-11 00:37:04 +00:00
|
|
|
ln -s $out/share/emacs/site-lisp/cask/bin/cask $out/bin/cask
|
2019-03-31 21:18:17 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Project management for Emacs";
|
|
|
|
longDescription = ''
|
|
|
|
Cask is a project management tool for Emacs that helps automate the
|
|
|
|
package development cycle; development, dependencies, testing, building,
|
|
|
|
packaging and more.
|
|
|
|
Cask can also be used to manage dependencies for your local Emacs configuration.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = https://cask.readthedocs.io/en/latest/index.html;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.flexw ];
|
|
|
|
};
|
|
|
|
|
2019-04-11 03:47:30 +00:00
|
|
|
nativeBuildInputs = [ emacsPackagesNg.emacs python ];
|
2019-03-31 21:18:17 +00:00
|
|
|
}
|