1 { lib, stdenv, fetchFromGitHub, zsh }:
3 # To make use of this derivation, use the `programs.zsh.enableSyntaxHighlighting` option
5 stdenv.mkDerivation (finalAttrs: {
7 pname = "zsh-syntax-highlighting";
9 src = fetchFromGitHub {
11 repo = "zsh-syntax-highlighting";
12 rev = finalAttrs.version;
13 hash = "sha256-iJdWopZwHpSyYl5/FQXEW7gl/SrKaYDEtTH9cGP7iPo=";
17 buildInputs = [ zsh ];
19 installFlags = [ "PREFIX=$(out)" ];
22 description = "Fish shell like syntax highlighting for Zsh";
23 homepage = "https://github.com/zsh-users/zsh-syntax-highlighting";
24 license = licenses.bsd3;
25 platforms = platforms.unix;
26 maintainers = with maintainers; [ gepbird loskutov ];