summary refs log tree commit diff
path: root/pkgs/shells/zsh/zsh-history-search-multi-word/default.nix
blob: 30d26c967662134a7fdcaaa55c2ab64966ab3230 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenvNoCC, lib, fetchFromGitHub }:

stdenvNoCC.mkDerivation rec {
  pname = "zsh-history-search-multi-word";
  version = "unstable-2021-11-13";

  src = fetchFromGitHub {
    owner = "zdharma-continuum";
    repo = "history-search-multi-word";
    rev = "5b44d8cea12351d91fbdc3697916556f59f14b8c";
    sha256 = "11r2mmy6bg3b6pf6qc0ml3idh333cj8yz754hrvd1sc4ipfkkqh7";
  };

  strictDeps = true;
  dontConfigure = true;
  dontBuild = true;

  installPhase = ''
    plugindir="$out/share/zsh/${pname}"

    mkdir -p "$plugindir"
    cp -r -- history-* hsmw-* "$plugindir"/
  '';

  meta = with lib; {
    description = "Multi-word, syntax highlighted history searching for Zsh";
    homepage = "https://github.com/zdharma-continuum/history-search-multi-word";
    license = with licenses; [ gpl3 mit ];
    platforms = platforms.unix;
  };
}