@@ -0,0 +1,26 @@
1+{ stdenv, lib, fetchFromGitHub, zsh }:
2+
3+stdenv.mkDerivation rec {
4+ name = "zsh-history-substring-search-${version}";
5+ version = "1.0.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "zsh-users";
9+ repo = "zsh-history-substring-search";
10+ rev = "v${version}";
11+ sha256 = "0lgmq1xcccnz5cf7vl0r0qj351hwclx9p80cl0qczxry4r2g5qaz";
12+ };
13+
14+ installPhase = ''
15+ install -D zsh-history-substring-search.zsh \
16+ "$out/share/zsh-history-substring-search/zsh-history-substring-search.zsh"
17+ '';
18+
19+ meta = with lib; {
20+ description = "Fish shell history-substring-search for Zsh";
21+ homepage = https://github.com/zsh-users/zsh-history-substring-search;
22+ license = licenses.bsd3;
23+ maintainers = with maintainers; [ qyliss ];
24+ platforms = platforms.unix;
25+ };
26+}