13 src = fetchFromGitLab {
17 hash = "sha256-G9z9lISalj3ZXlvDY+qA+0NB6F7flBd1cTcGfxrM91U=";
20 vendorHash = "sha256-SsWZO77KqDPzyEK57WaK4NpnDWUtZPP0qur2EvEoiL0=";
25 "-X main.version=${version}"
29 # failed to read configuration: mkdir /homeless-shelter: permission denied
33 subPackages = [ "cmd/glab" ];
35 nativeBuildInputs = [ installShellFiles ];
37 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
39 installManPage share/man/man1/*
40 installShellCompletion --cmd glab \
41 --bash <($out/bin/glab completion -s bash) \
42 --fish <($out/bin/glab completion -s fish) \
43 --zsh <($out/bin/glab completion -s zsh)
47 description = "GitLab CLI tool bringing GitLab to your command line";
48 license = lib.licenses.mit;
49 homepage = "https://gitlab.com/gitlab-org/cli";
50 changelog = "https://gitlab.com/gitlab-org/cli/-/releases/v${version}";
51 maintainers = with lib.maintainers; [