about summary refs log tree commit diff
path: root/pkgs/shells/zsh
diff options
context:
space:
mode:
authorJonas Heinrich <onny@project-insanity.org>2022-09-05 10:52:02 +0200
committerGitHub <noreply@github.com>2022-09-05 10:52:02 +0200
commit76e3488398aacf5b1a206b96cf65449f3c236c91 (patch)
tree06c2e23b1616bf842e7b2e9d486c5c4a2441a30e /pkgs/shells/zsh
parent0daa4b200c23210775edfc21b92cf3c4f89fa16d (diff)
parent43428c138663479d941b507b61be73264d6ec1e7 (diff)
Merge pull request #168872 from sei40kr/init-zi
zi: init at unstable-2022-04-09
Diffstat (limited to 'pkgs/shells/zsh')
-rw-r--r--pkgs/shells/zsh/zi/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/zi/default.nix b/pkgs/shells/zsh/zi/default.nix
new file mode 100644
index 0000000000000..b1adbe8d66162
--- /dev/null
+++ b/pkgs/shells/zsh/zi/default.nix
@@ -0,0 +1,30 @@
+{ lib, fetchFromGitHub, installShellFiles, stdenvNoCC }:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "zi";
+  version = "unstable-2022-04-09";
+  src = fetchFromGitHub {
+    owner = "z-shell";
+    repo = pname;
+    rev = "4ca4d3276ca816c3d37a31e47d754f9a732c40b9";
+    sha256 = "sha256-KcDFT0is5Ef/zRo6zVfxYfBMOb5oVaVFT4EsUrfiMko=";
+  };
+
+  dontBuild = true;
+
+  nativeBuildInputs = [ installShellFiles ];
+
+  installPhase = ''
+    mkdir -p $out
+    cp -r lib zi.zsh $out
+    installManPage docs/man/zi.1
+    installShellCompletion --zsh lib/_zi
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/z-shell/zi";
+    description = "A Swiss Army Knife for Zsh - Unix Shell";
+    license = licenses.mit;
+    maintainers = with maintainers; [ sei40kr ];
+  };
+}