zsh-abbr: adding completions + removing redudant bin directory (#348162)

authored by Aleksana and committed by GitHub 73a23a58 0dad0e58

+11 -4
+11 -4
pkgs/shells/zsh/zsh-abbr/default.nix
··· 2 2 stdenv, 3 3 lib, 4 4 fetchFromGitHub, 5 + installShellFiles, 5 6 }: 6 7 stdenv.mkDerivation rec { 7 8 pname = "zsh-abbr"; ··· 15 16 }; 16 17 17 18 strictDeps = true; 19 + nativeBuildInputs = [ installShellFiles ]; 18 20 19 21 installPhase = '' 20 - install -D zsh-abbr.zsh $out/share/zsh/${pname}/abbr.plugin.zsh 21 - # Needed so that `man` can find the manpage, since it looks via PATH 22 - mkdir -p $out/bin 23 - mv man $out/share/man 22 + runHook preInstall 23 + 24 + install zsh-abbr.plugin.zsh zsh-abbr.zsh -Dt $out/share/zsh/zsh-abbr/ 25 + install completions/_abbr -Dt $out/share/zsh/zsh-abbr/completions/ 26 + 27 + # Required for `man` to find the manpage of abbr, since it looks via PATH 28 + installManPage man/man1/* 29 + 30 + runHook postInstall 24 31 ''; 25 32 26 33 meta = with lib; {