about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2023-06-02 16:36:40 +0200
committerGitHub <noreply@github.com>2023-06-02 16:36:40 +0200
commit37a6711c1aaca0d1fbb4840222afc0ac4ae6f79b (patch)
treee11e5cfdd42c917d557d4fabed090927039ff5ec /pkgs
parent382388c965990528f5b597c3b128b09f08c9f6a0 (diff)
parentae9d6a042986e38e74b4f354738e46bf56c65665 (diff)
Merge pull request #234462 from hitsmaxft/add_antidote
antidote: init at 1.8.6
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/shells/zsh/antidote/default.nix33
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/antidote/default.nix b/pkgs/shells/zsh/antidote/default.nix
new file mode 100644
index 0000000000000..2e5fb8aa0f0e2
--- /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 eb425bb644b92..35d07c59568d4 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -6002,6 +6002,8 @@ with pkgs;
 
   antibody = callPackage ../shells/zsh/antibody { };
 
+  antidote = callPackage ../shells/zsh/antidote { };
+
   antigen = callPackage ../shells/zsh/antigen { };
 
   apparix = callPackage ../tools/misc/apparix { };