blob: 44773cf9a553eae3acbed552a946de0a3a8cc661 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ lib
, stdenv
, fetchFromGitHub
, installShellFiles
, unstableGitUpdater
}:
stdenv.mkDerivation (finalAttrs: {
pname = "zig-shell-completions";
version = "0-unstable-2023-11-18";
src = fetchFromGitHub {
owner = "ziglang";
repo = "shell-completions";
rev = "31d3ad12890371bf467ef7143f5c2f31cfa7b7c1";
hash = "sha256-ID/K0vdg7BTKGgozISk/X4RBxCVfhSkVD6GSZUoP9Ls=";
};
nativeBuildInputs = [ installShellFiles ];
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
installShellCompletion --bash --name zig.bash _zig.bash
installShellCompletion --zsh --name _zig _zig
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater { };
meta = {
homepage = "https://github.com/ziglang/shell-completions";
description = "Shell completions for the Zig compiler";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ aaronjheng ];
platforms = lib.platforms.all;
};
})
|