From 08f0ce1d0ad9e3df0b28c464ee39a2c5f95c0c68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Br=C3=B8nner?= Date: Mon, 27 Jun 2016 00:39:18 +0200 Subject: [PATCH] zsh-completions: init at version 0.18.0 (#16512) "This projects aims at gathering/developing new completion scripts that are not available in Zsh yet. The scripts are meant to be contributed to the Zsh project when stable enough." --- lib/maintainers.nix | 1 + pkgs/shells/zsh-completions/default.nix | 26 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 29 insertions(+) create mode 100644 pkgs/shells/zsh-completions/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 6f062bbdbff7..a06510ec21b1 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -276,6 +276,7 @@ odi = "Oliver Dunkl "; offline = "Jaka Hudoklin "; olcai = "Erik Timan "; + olejorgenb = "Ole Jørgen Brønner "; orbitz = "Malcolm Matalka "; osener = "Ozan Sener "; otwieracz = "Slawomir Gonet "; diff --git a/pkgs/shells/zsh-completions/default.nix b/pkgs/shells/zsh-completions/default.nix new file mode 100644 index 000000000000..dc62460441d1 --- /dev/null +++ b/pkgs/shells/zsh-completions/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub}: + +stdenv.mkDerivation rec { + name = "zsh-completions-${version}"; + version = "0.18.0"; + + src = fetchFromGitHub { + owner = "zsh-users"; + repo = "zsh-completions"; + rev = "${version}"; + sha256 = "0iwb1kaidjxaz66kbbdzbydbdlfc6dk21sflzar0zy25jgx1p4xs"; + }; + + installPhase= '' + install -D --target-directory=$out/share/zsh/site-functions src/* + ''; + + meta = { + description = "Additional completion definitions for zsh"; + homepage = "https://github.com/zsh-users/zsh-completions"; + license = stdenv.lib.licenses.free; + + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.maintainers.olejorgenb ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4fbc2277db50..98da5f419933 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4148,6 +4148,8 @@ in nix-zsh-completions = callPackage ../shells/nix-zsh-completions { }; + zsh-completions = callPackage ../shells/zsh-completions { }; + zsh-prezto = callPackage ../shells/zsh-prezto { }; grml-zsh-config = callPackage ../shells/grml-zsh-config { };