summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorYacine Hmito <gpyh@users.noreply.github.com>2017-01-11 07:00:48 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2017-01-11 07:00:48 +0100
commitf88e2fb5f170591e7e5c6f63470a5a187935a553 (patch)
tree70c30dcc8c3350743ff016efb70f10bfbe558539 /pkgs
parentc03bc5721203d4952bc7c4b90efedeee4383780c (diff)
downloadnixpkgs-f88e2fb5f170591e7e5c6f63470a5a187935a553.tar
nixpkgs-f88e2fb5f170591e7e5c6f63470a5a187935a553.tar.gz
nixpkgs-f88e2fb5f170591e7e5c6f63470a5a187935a553.tar.bz2
nixpkgs-f88e2fb5f170591e7e5c6f63470a5a187935a553.tar.lz
nixpkgs-f88e2fb5f170591e7e5c6f63470a5a187935a553.tar.xz
nixpkgs-f88e2fb5f170591e7e5c6f63470a5a187935a553.tar.zst
nixpkgs-f88e2fb5f170591e7e5c6f63470a5a187935a553.zip
zsh-autosuggestions: init at 0.3.3 (#21792)
Added a related `programs.zsh.enableAutosuggestions` option
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/shells/zsh-autosuggestions/default.nix32
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/shells/zsh-autosuggestions/default.nix b/pkgs/shells/zsh-autosuggestions/default.nix
new file mode 100644
index 00000000000..4071d7bd0f2
--- /dev/null
+++ b/pkgs/shells/zsh-autosuggestions/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, zsh }:
+
+# To make use of this derivation, use the `programs.zsh.enableAutoSuggestions` option
+
+stdenv.mkDerivation rec {
+  name = "zsh-autosuggestions-${version}";
+  version = "0.3.3";
+
+  src = fetchFromGitHub {
+    repo = "zsh-autosuggestions";
+    owner = "zsh-users";
+    rev = "v${version}";
+    sha256 = "0mnwyz4byvckrslzqfng5c0cx8ka0y12zcy52kb7amg3l07jrls4";
+  };
+
+  buildInputs = [ zsh ];
+
+  buildPhases = [ "unpackPhase" "installPhase" ];
+
+  installPhase = ''
+    install -D zsh-autosuggestions.zsh \
+      $out/share/zsh-autosuggestions/zsh-autosuggestions.zsh
+    '';
+
+  meta = with stdenv.lib; {
+    description = "Fish shell autosuggestions for Zsh";
+    homepage = "https://github.com/zsh-users/zsh-autosuggestions";
+    license = licenses.mit;
+    platforms = platforms.unix;
+    maintainers = [ maintainers.loskutov ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index c038430eaed..7b7acc0e638 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4553,6 +4553,8 @@ in
 
   zsh-syntax-highlighting = callPackage ../shells/zsh-syntax-highlighting { };
 
+  zsh-autosuggestions = callPackage ../shells/zsh-autosuggestions { };
+
   zstd = callPackage ../tools/compression/zstd { };
 
   zsync = callPackage ../tools/compression/zsync { };