Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / shells / zsh / nix-zsh-completions / default.nix
blob2d4edf3d34ba1cc7c3440f5db983a999192d7c4b
1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "nix-zsh-completions";
5   version = "0.5.1";
7   src = fetchFromGitHub {
8     owner = "nix-community";
9     repo = "nix-zsh-completions";
10     rev = "refs/tags/${version}";
11     hash = "sha256-bgbMc4HqigqgdkvUe/CWbUclwxpl17ESLzCIP8Sz+F8=";
12   };
14   strictDeps = true;
15   installPhase = ''
16     mkdir -p $out/share/zsh/{site-functions,plugins/nix}
17     cp _* $out/share/zsh/site-functions
18     cp *.zsh $out/share/zsh/plugins/nix
19   '';
21   meta = with lib; {
22     homepage = "https://github.com/nix-community/nix-zsh-completions";
23     description = "ZSH completions for Nix, NixOS, and NixOps";
24     license = licenses.bsd3;
25     platforms = platforms.all;
26     maintainers = with maintainers; [ olejorgenb hedning ma27 sebtm ];
27   };