2019-11-20 02:20:17 +00:00
|
|
|
{ stdenvNoCC, lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "zsh-fast-syntax-highlighting";
|
2021-06-09 15:12:55 +01:00
|
|
|
version = "1.55";
|
2019-11-20 02:20:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zdharma";
|
|
|
|
repo = "fast-syntax-highlighting";
|
|
|
|
rev = "v${version}";
|
2021-06-09 15:12:55 +01:00
|
|
|
sha256 = "0h7f27gz586xxw7cc0wyiv3bx0x3qih2wwh05ad85bh2h834ar8d";
|
2019-11-20 02:20:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
plugindir="$out/share/zsh/site-functions"
|
|
|
|
|
|
|
|
mkdir -p "$plugindir"
|
2021-06-09 15:12:55 +01:00
|
|
|
cp -r -- {,_,-,.}fast-* *chroma themes "$plugindir"/
|
2019-11-20 02:20:17 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Syntax-highlighting for Zshell";
|
|
|
|
homepage = "https://github.com/zdharma/fast-syntax-highlighting";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|