zig-shell-completions: init at unstable-2023-08-17

authored by

Aaron Jheng and committed by
Anderson Torres
9182fed8 829d3c11

+41
+39
pkgs/development/compilers/zig/shell-completions.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , installShellFiles 5 + }: 6 + 7 + stdenv.mkDerivation rec { 8 + pname = "zig-shell-completions"; 9 + version = "unstable-2023-08-17"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "ziglang"; 13 + repo = "shell-completions"; 14 + rev = "de9f83166d792cce6a0524e63d2755952dd9872c"; 15 + hash = "sha256-92n41/AWbHYkXiBtbWw+hXZKJCE7KW9igd8cLSBQfHo="; 16 + }; 17 + 18 + nativeBuildInputs = [ installShellFiles ]; 19 + 20 + dontConfigure = true; 21 + dontBuild = true; 22 + 23 + installPhase = '' 24 + runHook preInstall 25 + 26 + installShellCompletion --bash --name zig.bash _zig.bash 27 + installShellCompletion --zsh --name _zig _zig 28 + 29 + runHook postInstall 30 + ''; 31 + 32 + meta = with lib; { 33 + homepage = "https://github.com/ziglang/shell-completions"; 34 + description = "Shell completions for the Zig compiler"; 35 + license = licenses.mit; 36 + maintainers = with maintainers; [ aaronjheng ]; 37 + platforms = platforms.all; 38 + }; 39 + }
+2
pkgs/top-level/all-packages.nix
··· 25728 25728 }; 25729 25729 zig = zig_0_11; 25730 25730 25731 + zig-shell-completions = callPackage ../development/compilers/zig/shell-completions.nix { }; 25732 + 25731 25733 zimlib = callPackage ../development/libraries/zimlib { }; 25732 25734 25733 25735 zita-convolver = callPackage ../development/libraries/audio/zita-convolver { };