2021-05-15 16:45:05 +00:00
|
|
|
{ lib, stdenv, python3, emacs, bash }:
|
2019-03-31 21:18:17 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "cask";
|
2019-03-31 21:18:17 +00:00
|
|
|
|
2020-12-18 03:46:05 +00:00
|
|
|
inherit (emacs.pkgs.melpaStablePackages.cask) src version;
|
2019-03-31 21:18:17 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2019-09-21 09:43:17 +00:00
|
|
|
|
2020-12-18 03:46:05 +00:00
|
|
|
nativeBuildInputs = [ emacs ];
|
|
|
|
buildInputs = with emacs.pkgs; [
|
2019-04-11 03:47:30 +00:00
|
|
|
s f dash ansi ecukes servant ert-runner el-mock
|
|
|
|
noflet ert-async shell-split-string git package-build
|
2019-09-21 09:43:17 +00:00
|
|
|
] ++ [
|
2021-03-25 10:21:54 +00:00
|
|
|
python3
|
2021-05-15 16:45:05 +00:00
|
|
|
bash
|
2019-04-11 03:47:30 +00:00
|
|
|
];
|
2019-09-21 09:43:17 +00:00
|
|
|
|
2021-03-25 10:21:54 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2019-04-11 00:37:04 +00:00
|
|
|
buildPhase = ''
|
2021-05-15 16:45:05 +00:00
|
|
|
runHook preBuild
|
2022-03-18 03:57:30 +00:00
|
|
|
|
2019-04-11 00:37:04 +00:00
|
|
|
emacs --batch -L . -f batch-byte-compile cask.el cask-cli.el
|
2022-03-18 03:57:30 +00:00
|
|
|
|
2021-05-15 16:45:05 +00:00
|
|
|
runHook postBuild
|
2019-04-11 00:37:04 +00:00
|
|
|
'';
|
2019-03-31 21:18:17 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2021-05-15 16:45:05 +00:00
|
|
|
runHook preInstall
|
2022-03-18 03:57:30 +00:00
|
|
|
|
2019-03-31 21:18:17 +00:00
|
|
|
mkdir -p $out/bin
|
2022-03-18 03:57:30 +00:00
|
|
|
dir=$out/share/emacs/site-lisp/cask
|
|
|
|
install -Dm444 -t $dir *.el *.elc
|
|
|
|
install -Dm555 -t $dir/bin bin/cask
|
2019-03-31 21:18:17 +00:00
|
|
|
touch $out/.no-upgrade
|
2022-03-18 03:57:30 +00:00
|
|
|
ln -s $dir/bin/cask $out/bin/cask
|
|
|
|
|
2021-05-15 16:45:05 +00:00
|
|
|
runHook postInstall
|
2019-03-31 21:18:17 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2019-03-31 21:18:17 +00:00
|
|
|
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 09:43:17 +00:00
|
|
|
homepage = "https://cask.readthedocs.io/en/latest/index.html";
|
2019-03-31 21:18:17 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-03-18 03:57:30 +00:00
|
|
|
maintainers = with maintainers; [ flexw ];
|
2020-11-28 18:48:45 +00:00
|
|
|
platforms = platforms.all;
|
2019-03-31 21:18:17 +00:00
|
|
|
};
|
|
|
|
}
|