@@ -0,0 +1,30 @@
1+{ stdenvNoCC, lib, fetchFromGitHub }:
2+
3+stdenvNoCC.mkDerivation rec {
4+ pname = "zsh-fast-syntax-highlighting";
5+ version = "1.54";
6+
7+ src = fetchFromGitHub {
8+ owner = "zdharma";
9+ repo = "fast-syntax-highlighting";
10+ rev = "v${version}";
11+ sha256 = "019hda2pj8lf7px4h1z07b9l6icxx4b2a072jw36lz9bh6jahp32";
12+ };
13+
14+ dontConfigure = true;
15+ dontBuild = true;
16+
17+ installPhase = ''
18+ plugindir="$out/share/zsh/site-functions"
19+
20+ mkdir -p "$plugindir"
21+ cp -r -- {,_,-}fast-* chroma themes "$plugindir"/
22+ '';
23+
24+ meta = with lib; {
25+ description = "Syntax-highlighting for Zshell";
26+ homepage = "https://github.com/zdharma/fast-syntax-highlighting";
27+ license = licenses.bsd3;
28+ platforms = platforms.unix;
29+ };
30+}