mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
cask: templates were dropped from latest version
This commit is contained in:
parent
b3549ba290
commit
4345ab5c70
@ -20,20 +20,22 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
emacs --batch -L . -f batch-byte-compile cask.el cask-cli.el
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/templates
|
||||
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
|
||||
install -Dm644 templates/* $out/templates/
|
||||
dir=$out/share/emacs/site-lisp/cask
|
||||
install -Dm444 -t $dir *.el *.elc
|
||||
install -Dm555 -t $dir/bin bin/cask
|
||||
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
|
||||
'';
|
||||
|
||||
@ -48,7 +50,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
homepage = "https://cask.readthedocs.io/en/latest/index.html";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ flexw ];
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.flexw ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user