summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2022-03-18 11:57:30 +0800
committerPeter Hoeg <peter@hoeg.com>2022-03-20 15:50:41 +0800
commit4345ab5c7092326ab57b8e09878d8e76f79b383e (patch)
treefc59fb0b97b098294326e35489a365bc5305b27f
parentb3549ba2906a79a5c4f2595e39e2c6da2f5b9361 (diff)
cask: templates were dropped from latest version
-rw-r--r--pkgs/development/tools/cask/default.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/development/tools/cask/default.nix b/pkgs/development/tools/cask/default.nix
index f9e7d215f320..2eadc6b877f7 100644
--- a/pkgs/development/tools/cask/default.nix
+++ b/pkgs/development/tools/cask/default.nix
@@ -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 ];
};
}