2021-01-11 07:54:33 +00:00
|
|
|
{ lib, 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 {
|
2020-03-03 23:53:39 +00:00
|
|
|
version = "0.7.1";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "zsh-syntax-highlighting";
|
2017-05-23 11:11:31 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zsh-users";
|
|
|
|
repo = "zsh-syntax-highlighting";
|
|
|
|
rev = version;
|
2020-03-03 23:53:39 +00:00
|
|
|
sha256 = "03r6hpb5fy4yaakqm3lbf4xcvd408r44jgpv4lnzl9asp4sb9qc0";
|
2016-10-02 23:07:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zsh ];
|
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2016-10-02 23:07:23 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-10-02 23:07:23 +01:00
|
|
|
description = "Fish shell like syntax highlighting for Zsh";
|
2020-03-03 23:53:39 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|