2017-05-23 12:11:31 +02:00
|
|
|
{ stdenv, fetchFromGitHub, zsh }:
|
2016-10-03 00:07:23 +02:00
|
|
|
|
|
|
|
# To make use of this derivation, use the `programs.zsh.enableSyntaxHighlighting` option
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-05-23 12:11:31 +02:00
|
|
|
version = "0.5.0";
|
|
|
|
name = "zsh-syntax-highlighting-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zsh-users";
|
|
|
|
repo = "zsh-syntax-highlighting";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0k0m5aw67lhi4z143sdawx93y1892scvvdfdnjvljb4hf0vzs2ww";
|
2016-10-03 00:07:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zsh ];
|
|
|
|
|
2017-05-23 12:11:31 +02:00
|
|
|
installFlags = "PREFIX=$(out)";
|
2016-10-03 00:07:23 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Fish shell like syntax highlighting for Zsh";
|
|
|
|
homepage = "https://github.com/zsh-users/zsh-syntax-highlighting";
|
|
|
|
license = licenses.bsd3;
|
2016-10-05 16:43:53 +02:00
|
|
|
platforms = platforms.unix;
|
2016-10-03 00:07:23 +02:00
|
|
|
maintainers = [ maintainers.loskutov ];
|
|
|
|
};
|
|
|
|
}
|