depot/third_party/nixpkgs/pkgs/shells/zsh/nix-zsh-completions/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

28 lines
818 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "nix-zsh-completions";
version = "unstable-2023-01-30";
src = fetchFromGitHub {
owner = "nix-community";
repo = "nix-zsh-completions";
rev = "6a1bfc024481bdba568f2ced65e02f3a359a7692";
hash = "sha256-aXetjkl5nPuYHHyuX59ywXF+4Xg+PUCV6Y2u+g18gEk=";
};
strictDeps = true;
installPhase = ''
mkdir -p $out/share/zsh/{site-functions,plugins/nix}
cp _* $out/share/zsh/site-functions
cp *.zsh $out/share/zsh/plugins/nix
'';
meta = with lib; {
homepage = "https://github.com/nix-community/nix-zsh-completions";
description = "ZSH completions for Nix, NixOS, and NixOps";
license = licenses.bsd3;
platforms = platforms.all;
maintainers = with maintainers; [ olejorgenb hedning ma27 ];
};
}