btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / zs / zsh-history-search-multi-word / package.nix
blob30d26c967662134a7fdcaaa55c2ab64966ab3230
1 { stdenvNoCC, lib, fetchFromGitHub }:
3 stdenvNoCC.mkDerivation rec {
4   pname = "zsh-history-search-multi-word";
5   version = "unstable-2021-11-13";
7   src = fetchFromGitHub {
8     owner = "zdharma-continuum";
9     repo = "history-search-multi-word";
10     rev = "5b44d8cea12351d91fbdc3697916556f59f14b8c";
11     sha256 = "11r2mmy6bg3b6pf6qc0ml3idh333cj8yz754hrvd1sc4ipfkkqh7";
12   };
14   strictDeps = true;
15   dontConfigure = true;
16   dontBuild = true;
18   installPhase = ''
19     plugindir="$out/share/zsh/${pname}"
21     mkdir -p "$plugindir"
22     cp -r -- history-* hsmw-* "$plugindir"/
23   '';
25   meta = with lib; {
26     description = "Multi-word, syntax highlighted history searching for Zsh";
27     homepage = "https://github.com/zdharma-continuum/history-search-multi-word";
28     license = with licenses; [ gpl3 mit ];
29     platforms = platforms.unix;
30   };