zsh-syntax-highlighting: switch to finalAttrs pattern and cleanup
This commit is contained in:
parent
1ec01c34d7
commit
7d4c083215
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||
# To make use of this derivation, use the `programs.zsh.enableSyntaxHighlighting` option
|
# To make use of this derivation, use the `programs.zsh.enableSyntaxHighlighting` option
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
version = "0.8.0";
|
version = "0.8.0";
|
||||||
pname = "zsh-syntax-highlighting";
|
pname = "zsh-syntax-highlighting";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "zsh-users";
|
owner = "zsh-users";
|
||||||
repo = "zsh-syntax-highlighting";
|
repo = "zsh-syntax-highlighting";
|
||||||
rev = version;
|
rev = finalAttrs.version;
|
||||||
sha256 = "sha256-iJdWopZwHpSyYl5/FQXEW7gl/SrKaYDEtTH9cGP7iPo=";
|
hash = "sha256-iJdWopZwHpSyYl5/FQXEW7gl/SrKaYDEtTH9cGP7iPo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
@ -23,6 +23,6 @@ stdenv.mkDerivation rec {
|
||||||
homepage = "https://github.com/zsh-users/zsh-syntax-highlighting";
|
homepage = "https://github.com/zsh-users/zsh-syntax-highlighting";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = [ maintainers.loskutov ];
|
maintainers = with maintainers; [ loskutov ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user