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