From 5153446c44bc90a2ca74c768e64db986a9df9175 Mon Sep 17 00:00:00 2001 From: Bjørn Forsman Date: Fri, 11 Feb 2022 16:27:30 +0100 Subject: nix-bash-completions: add missing pre/postInstall hooks --- pkgs/shells/bash/nix-bash-completions/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs/shells') diff --git a/pkgs/shells/bash/nix-bash-completions/default.nix b/pkgs/shells/bash/nix-bash-completions/default.nix index 2e8b49385fb43..089e5dfc702ff 100644 --- a/pkgs/shells/bash/nix-bash-completions/default.nix +++ b/pkgs/shells/bash/nix-bash-completions/default.nix @@ -14,6 +14,8 @@ stdenv.mkDerivation rec { # To enable lazy loading via. bash-completion we need a symlink to the script # from every command name. installPhase = '' + runHook preInstall + commands=$( function complete() { shift 2; echo "$@"; } shopt -s extglob @@ -24,6 +26,8 @@ stdenv.mkDerivation rec { for c in $commands; do ln -s _nix $c done + + runHook postInstall ''; meta = with lib; { -- cgit 1.4.1