13 src = fetchFromGitLab {
17 hash = "sha256-WQO+9Fmlzj21UPJ9cdFc6JC8mbkzOWxz077JR+11BXA=";
20 vendorHash = "sha256-nwHY0221nacHk4M+RKA8BEJLCoJJdIKwP0ZPjhYxc7Q=";
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; [