2019-08-07 23:52:22 +01:00
|
|
|
{ stdenv, fetchurl, python, emacsPackages }:
|
2019-03-31 22:18:17 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cask";
|
2019-03-31 22:18:17 +01:00
|
|
|
|
2019-09-22 16:43:57 +01:00
|
|
|
inherit (emacsPackages.melpaStablePackages.cask) src version;
|
2019-03-31 22:18:17 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
2019-09-21 10:43:17 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ emacsPackages.emacs ];
|
2019-08-07 23:52:22 +01:00
|
|
|
buildInputs = with emacsPackages; [
|
2019-04-11 04:47:30 +01:00
|
|
|
s f dash ansi ecukes servant ert-runner el-mock
|
|
|
|
noflet ert-async shell-split-string git package-build
|
2019-09-21 10:43:17 +01:00
|
|
|
] ++ [
|
|
|
|
python
|
2019-04-11 04:47:30 +01:00
|
|
|
];
|
2019-09-21 10:43:17 +01:00
|
|
|
|
2019-04-11 01:37:04 +01:00
|
|
|
buildPhase = ''
|
|
|
|
emacs --batch -L . -f batch-byte-compile cask.el cask-cli.el
|
|
|
|
'';
|
2019-03-31 22:18:17 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/templates
|
2019-04-11 01:37:04 +01: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 22:18:17 +01:00
|
|
|
install -Dm644 templates/* $out/templates/
|
|
|
|
touch $out/.no-upgrade
|
2019-04-11 01:37:04 +01:00
|
|
|
ln -s $out/share/emacs/site-lisp/cask/bin/cask $out/bin/cask
|
2019-03-31 22:18:17 +01: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.
|
|
|
|
'';
|
|
|
|
|
2019-09-21 10:43:17 +01:00
|
|
|
homepage = "https://cask.readthedocs.io/en/latest/index.html";
|
2019-03-31 22:18:17 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.flexw ];
|
|
|
|
};
|
|
|
|
}
|