cask: templates were dropped from latest version

This commit is contained in:
Peter Hoeg 2022-03-18 11:57:30 +08:00
parent b3549ba290
commit 4345ab5c70

View file

@ -20,20 +20,22 @@ stdenv.mkDerivation rec {
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
emacs --batch -L . -f batch-byte-compile cask.el cask-cli.el emacs --batch -L . -f batch-byte-compile cask.el cask-cli.el
runHook postBuild runHook postBuild
''; '';
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/bin mkdir -p $out/bin
mkdir -p $out/templates dir=$out/share/emacs/site-lisp/cask
mkdir -p $out/share/emacs/site-lisp/cask/bin install -Dm444 -t $dir *.el *.elc
install -Dm644 *.el *.elc $out/share/emacs/site-lisp/cask install -Dm555 -t $dir/bin bin/cask
install -Dm755 bin/cask $out/share/emacs/site-lisp/cask/bin
install -Dm644 templates/* $out/templates/
touch $out/.no-upgrade touch $out/.no-upgrade
ln -s $out/share/emacs/site-lisp/cask/bin/cask $out/bin/cask ln -s $dir/bin/cask $out/bin/cask
runHook postInstall runHook postInstall
''; '';
@ -48,7 +50,7 @@ stdenv.mkDerivation rec {
homepage = "https://cask.readthedocs.io/en/latest/index.html"; homepage = "https://cask.readthedocs.io/en/latest/index.html";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ flexw ];
platforms = platforms.all; platforms = platforms.all;
maintainers = [ maintainers.flexw ];
}; };
} }