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-11-03 19:03:16 +00:00
|
|
|
version = "0.6.0";
|
2017-05-23 11:11:31 +01:00
|
|
|
name = "zsh-syntax-highlighting-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zsh-users";
|
|
|
|
repo = "zsh-syntax-highlighting";
|
|
|
|
rev = version;
|
2017-11-03 19:03:16 +00:00
|
|
|
sha256 = "0zmq66dzasmr5pwribyh4kbkk23jxbpdw4rjxx0i7dx8jjp2lzl4";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|