841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
30 lines
733 B
Nix
30 lines
733 B
Nix
{ stdenvNoCC, lib, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "zsh-fast-syntax-highlighting";
|
|
version = "1.55";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zdharma";
|
|
repo = "fast-syntax-highlighting";
|
|
rev = "v${version}";
|
|
sha256 = "0h7f27gz586xxw7cc0wyiv3bx0x3qih2wwh05ad85bh2h834ar8d";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|