8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
30 lines
730 B
Nix
30 lines
730 B
Nix
{ 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;
|
|
};
|
|
}
|