2017-05-23 13:11:31 +03:00
|
|
|
{ stdenv, fetchFromGitHub, zsh }:
|
2016-10-03 01:07:23 +03:00
|
|
|
|
|
|
|
# To make use of this derivation, use the `programs.zsh.enableSyntaxHighlighting` option
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-05-23 13:11:31 +03: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 01:07:23 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zsh ];
|
|
|
|
|
2017-05-23 13:11:31 +03:00
|
|
|
installFlags = "PREFIX=$(out)";
|
2016-10-03 01:07:23 +03:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Fish shell like syntax highlighting for Zsh";
|
2017-08-01 23:03:30 +03:00
|
|
|
homepage = https://github.com/zsh-users/zsh-syntax-highlighting;
|
2016-10-03 01:07:23 +03:00
|
|
|
license = licenses.bsd3;
|
2016-10-05 17:43:53 +03:00
|
|
|
platforms = platforms.unix;
|
2016-10-03 01:07:23 +03:00
|
|
|
maintainers = [ maintainers.loskutov ];
|
|
|
|
};
|
|
|
|
}
|