about summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorSeong Yong-ju <sei40kr@gmail.com>2022-01-06 03:10:58 +0900
committerSeong Yong-ju <sei40kr@gmail.com>2022-01-06 03:10:58 +0900
commit769340d3c0ed89c3400c4d3e1596a576785fbb24 (patch)
tree25bf0cad5ce62de8cbdab700932b819c77cc3f3c /pkgs/shells
parent115a6f077fc29e7dc846618be86ece84c6d6aea7 (diff)
zsh-history-search-multi-word: init at unstable-2021-11-13
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/zsh/zsh-history-search-multi-word/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/zsh-history-search-multi-word/default.nix b/pkgs/shells/zsh/zsh-history-search-multi-word/default.nix
new file mode 100644
index 0000000000000..09d2136ea26cb
--- /dev/null
+++ b/pkgs/shells/zsh/zsh-history-search-multi-word/default.nix
@@ -0,0 +1,30 @@
+{ 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";
+  };
+
+  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;
+  };
+}