diff options
author | pasqui23 <pasqui23@users.noreply.github.com> | 2019-11-20 03:20:17 +0100 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2019-11-19 21:20:17 -0500 |
commit | c20f765bb489ef659c775c106af212a64530216b (patch) | |
tree | 29fa3adb32b43da577f943190612451511ae2987 /pkgs/shells | |
parent | 91b02cd86b09bdd3549663e81883a2c3a7e11961 (diff) |
zsh-fast-syntax-highlighting: init at 1.54 (#65429)
Diffstat (limited to 'pkgs/shells')
-rw-r--r-- | pkgs/shells/zsh/zsh-fast-syntax-highlighting/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/zsh-fast-syntax-highlighting/default.nix b/pkgs/shells/zsh/zsh-fast-syntax-highlighting/default.nix new file mode 100644 index 0000000000000..452419bf8b09e --- /dev/null +++ b/pkgs/shells/zsh/zsh-fast-syntax-highlighting/default.nix @@ -0,0 +1,30 @@ +{ stdenvNoCC, lib, fetchFromGitHub }: + +stdenvNoCC.mkDerivation rec { + pname = "zsh-fast-syntax-highlighting"; + version = "1.54"; + + src = fetchFromGitHub { + owner = "zdharma"; + repo = "fast-syntax-highlighting"; + rev = "v${version}"; + sha256 = "019hda2pj8lf7px4h1z07b9l6icxx4b2a072jw36lz9bh6jahp32"; + }; + + dontConfigure = true; + dontBuild = true; + + installPhase = '' + plugindir="$out/share/zsh/site-functions" + + mkdir -p "$plugindir" + cp -r -- {,_,-}fast-* chroma themes "$plugindir"/ + ''; + + meta = with lib; { + description = "Syntax-highlighting for Zshell"; + homepage = "https://github.com/zdharma/fast-syntax-highlighting"; + license = licenses.bsd3; + platforms = platforms.unix; + }; +} |