diff --git a/pkgs/shells/zsh-syntax-highlighting/default.nix b/pkgs/shells/zsh-syntax-highlighting/default.nix index 792a8875db4d..21911c8800cb 100644 --- a/pkgs/shells/zsh-syntax-highlighting/default.nix +++ b/pkgs/shells/zsh-syntax-highlighting/default.nix @@ -1,25 +1,21 @@ -{ stdenv, fetchurl, zsh }: +{ stdenv, fetchFromGitHub, zsh }: # To make use of this derivation, use the `programs.zsh.enableSyntaxHighlighting` option -let - - pkgName = "zsh-syntax-highlighting"; - version = "0.4.1"; - -in - stdenv.mkDerivation rec { - name = "${pkgName}-${version}"; + version = "0.5.0"; + name = "zsh-syntax-highlighting-${version}"; - src = fetchurl { - url = "https://github.com/zsh-users/${pkgName}/archive/${version}.tar.gz"; - sha256 = "15sih7blqz11d8wdybx38d91vgcq9jg3q0205r26138si0g9q6wp"; + src = fetchFromGitHub { + owner = "zsh-users"; + repo = "zsh-syntax-highlighting"; + rev = version; + sha256 = "0k0m5aw67lhi4z143sdawx93y1892scvvdfdnjvljb4hf0vzs2ww"; }; buildInputs = [ zsh ]; - installFlags="PREFIX=$(out)"; + installFlags = "PREFIX=$(out)"; meta = with stdenv.lib; { description = "Fish shell like syntax highlighting for Zsh";