summary refs log tree commit diff
path: root/pkgs/shells
diff options
context:
space:
mode:
authorLassulus <github@lassul.us>2022-04-08 20:41:28 +0100
committerGitHub <noreply@github.com>2022-04-08 20:41:28 +0100
commit710f27aca38ba97a3b5af81fef6670e9a289c857 (patch)
tree35eb4af46ba761d679b3b0057a86a11683803b78 /pkgs/shells
parentdb1df432e3bc8c01968422b76b47d63489188ed7 (diff)
parent0fb036a25fa702737a0bedb0fb246938355bb13e (diff)
downloadnixpkgs-710f27aca38ba97a3b5af81fef6670e9a289c857.tar
nixpkgs-710f27aca38ba97a3b5af81fef6670e9a289c857.tar.gz
nixpkgs-710f27aca38ba97a3b5af81fef6670e9a289c857.tar.bz2
nixpkgs-710f27aca38ba97a3b5af81fef6670e9a289c857.tar.lz
nixpkgs-710f27aca38ba97a3b5af81fef6670e9a289c857.tar.xz
nixpkgs-710f27aca38ba97a3b5af81fef6670e9a289c857.tar.zst
nixpkgs-710f27aca38ba97a3b5af81fef6670e9a289c857.zip
Merge pull request #162657 from ambroisie/add-agkozak-zsh-prompt
agkozak-zsh-prompt: init at 3.11.1
Diffstat (limited to 'pkgs/shells')
-rw-r--r--pkgs/shells/zsh/agkozak-zsh-prompt/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/agkozak-zsh-prompt/default.nix b/pkgs/shells/zsh/agkozak-zsh-prompt/default.nix
new file mode 100644
index 00000000000..91d1bd3022b
--- /dev/null
+++ b/pkgs/shells/zsh/agkozak-zsh-prompt/default.nix
@@ -0,0 +1,31 @@
+{ stdenvNoCC, lib, fetchFromGitHub }:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "agkozak-zsh-prompt";
+  version = "3.11.1";
+
+  src = fetchFromGitHub {
+    owner = "agkozak";
+    repo = "agkozak-zsh-prompt";
+    rev = "v${version}";
+    sha256 = "sha256-TOfAWxw1uIV0hKV9o4EJjOlp+jmGWCONDex86ipegOY=";
+  };
+
+  dontConfigure = true;
+  dontBuild = true;
+
+  installPhase = ''
+    plugindir="$out/share/zsh/site-functions"
+
+    mkdir -p "$plugindir"
+    cp -r -- lib/*.zsh agkozak-zsh-prompt.plugin.zsh prompt_agkozak-zsh-prompt_setup "$plugindir"/
+  '';
+
+  meta = with lib; {
+    description = "A fast, asynchronous Zsh prompt";
+    homepage = "https://github.com/agkozak/agkozak-zsh-prompt";
+    license = licenses.mit;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ ambroisie ];
+  };
+}