diff options
author | Sebastian Jordan <sebastian.jordan.mail@googlemail.com> | 2021-05-15 18:45:05 +0200 |
---|---|---|
committer | Sebastian Jordan <sebastian.jordan.mail@googlemail.com> | 2021-07-14 17:01:10 +0200 |
commit | 29c2135a2784e62bc815b26942a18c9100b03b3f (patch) | |
tree | 72c8fbbcce6a21aefe75ed3400cfda427f44403b /pkgs/development/tools/cask | |
parent | 20d0d5368e70c544a8e80af2878c290fe0964d88 (diff) | |
download | nixpkgs-29c2135a2784e62bc815b26942a18c9100b03b3f.tar nixpkgs-29c2135a2784e62bc815b26942a18c9100b03b3f.tar.gz nixpkgs-29c2135a2784e62bc815b26942a18c9100b03b3f.tar.bz2 nixpkgs-29c2135a2784e62bc815b26942a18c9100b03b3f.tar.lz nixpkgs-29c2135a2784e62bc815b26942a18c9100b03b3f.tar.xz nixpkgs-29c2135a2784e62bc815b26942a18c9100b03b3f.tar.zst nixpkgs-29c2135a2784e62bc815b26942a18c9100b03b3f.zip |
cask: Add build phase hooks and install phase hooks
Add the pre and post phase hooks was done to fix the broken shebangs of the cask executable.
Diffstat (limited to 'pkgs/development/tools/cask')
-rw-r--r-- | pkgs/development/tools/cask/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/tools/cask/default.nix b/pkgs/development/tools/cask/default.nix index 1c5f316cea9..f9e7d215f32 100644 --- a/pkgs/development/tools/cask/default.nix +++ b/pkgs/development/tools/cask/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, python3, emacs }: +{ lib, stdenv, python3, emacs, bash }: stdenv.mkDerivation rec { pname = "cask"; @@ -13,15 +13,19 @@ stdenv.mkDerivation rec { noflet ert-async shell-split-string git package-build ] ++ [ python3 + bash ]; strictDeps = true; 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 @@ -30,6 +34,7 @@ stdenv.mkDerivation rec { install -Dm644 templates/* $out/templates/ touch $out/.no-upgrade ln -s $out/share/emacs/site-lisp/cask/bin/cask $out/bin/cask + runHook postInstall ''; meta = with lib; { |