From ae9d6a042986e38e74b4f354738e46bf56c65665 Mon Sep 17 00:00:00 2001 From: hitsmaxft Date: Fri, 2 Jun 2023 18:13:24 +0800 Subject: [PATCH] antidote: init at 1.8.6 --- maintainers/maintainer-list.nix | 6 +++++ pkgs/shells/zsh/antidote/default.nix | 33 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 41 insertions(+) create mode 100644 pkgs/shells/zsh/antidote/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 30ebe4a7ce54..6bc0d939610e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -6364,6 +6364,12 @@ fingerprint = "45A9 9917 578C D629 9F5F B5B4 C22D 4DE4 D7B3 2D19"; }]; }; + hitsmaxft = { + name = "Bhe Hongtyu"; + email = "mfthits@gmail.com"; + github = "hitsmaxft"; + githubId = 352727; + }; hjones2199 = { email = "hjones2199@gmail.com"; github = "hjones2199"; diff --git a/pkgs/shells/zsh/antidote/default.nix b/pkgs/shells/zsh/antidote/default.nix new file mode 100644 index 000000000000..2e5fb8aa0f0e --- /dev/null +++ b/pkgs/shells/zsh/antidote/default.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation (finalAttrs: { + version = "1.8.6"; + pname = "antidote"; + + src = fetchFromGitHub { + owner = "mattmc3"; + repo = "antidote"; + rev = "v${finalAttrs.version}"; + hash = "sha256-CcWEXvz1TB6LFu9qvkVB1LJsa68grK16VqjUTiuVG/c="; + }; + + dontPatch = true; + dontBuild = true; + dontConfigure = true; + dontFixup = true; + + installPhase = '' + runHook preInstall + install -D antidote --target-directory=$out/share/antidote + install -D antidote.zsh --target-directory=$out/share/antidote + install -D functions/* --target-directory=$out/share/antidote/functions + runHook postInstall + ''; + + meta = { + description = "A zsh plugin manager made from the ground up thinking about performance"; + homepage = "https://getantidote.github.io/"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.hitsmaxft ]; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e68d069104a0..80e00629322f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5973,6 +5973,8 @@ with pkgs; antibody = callPackage ../shells/zsh/antibody { }; + antidote = callPackage ../shells/zsh/antidote { }; + antigen = callPackage ../shells/zsh/antigen { }; apparix = callPackage ../tools/misc/apparix { };