mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
29 lines
785 B
Nix
29 lines
785 B
Nix
{ lib, stdenv, fetchFromGitHub, zsh }:
|
|
|
|
# To make use of this derivation, use the `programs.zsh.enableSyntaxHighlighting` option
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
version = "0.8.0";
|
|
pname = "zsh-syntax-highlighting";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zsh-users";
|
|
repo = "zsh-syntax-highlighting";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-iJdWopZwHpSyYl5/FQXEW7gl/SrKaYDEtTH9cGP7iPo=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
buildInputs = [ zsh ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
meta = with lib; {
|
|
description = "Fish shell like syntax highlighting for Zsh";
|
|
homepage = "https://github.com/zsh-users/zsh-syntax-highlighting";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ gepbird loskutov ];
|
|
};
|
|
})
|