1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4 pname = "nix-zsh-completions";
7 src = fetchFromGitHub {
8 owner = "nix-community";
9 repo = "nix-zsh-completions";
10 rev = "refs/tags/${version}";
11 hash = "sha256-bgbMc4HqigqgdkvUe/CWbUclwxpl17ESLzCIP8Sz+F8=";
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
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 ];