1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

zsh-zhooks: fix version, refactor

This commit is contained in:
Weijia Wang 2024-07-05 23:58:32 +02:00
parent 67c89a3dfe
commit 7d80ad7987

View file

@ -1,11 +1,11 @@
{
lib,
stdenv,
stdenvNoCC,
fetchFromGitHub,
}:
stdenv.mkDerivation {
stdenvNoCC.mkDerivation {
pname = "zsh-zhooks";
version = "0-unstable-10-31-2021";
version = "0-unstable-2021-10-31";
src = fetchFromGitHub {
owner = "agkozak";
@ -17,7 +17,9 @@ stdenv.mkDerivation {
dontBuild = true;
installPhase = ''
runHook preInstall
install -m755 -D zhooks.plugin.zsh --target-directory $out/share/zsh/zhooks
runHook postInstall
'';
meta = {
@ -29,5 +31,6 @@ stdenv.mkDerivation {
hook arrays (such as precmd_functions).
'';
maintainers = [ lib.maintainers.fidgetingbits ];
platforms = lib.platforms.all;
};
}