base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / tu / tuleap-cli / package.nix
blob73abdd14db75f2946bce325ac1893d3bf4ff57b4
1 { lib
2 , buildGoModule
3 , fetchFromGitLab
4 , installShellFiles
5 }:
7 buildGoModule rec {
8   pname = "tuleap-cli";
9   version = "1.1.0";
11   src = fetchFromGitLab {
12     owner = "csgroup-oss";
13     repo = "tuleap-cli";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-hL0mGWXzvHYFc8u4RXCDys3Fe/cgsGljfhSkPAjzt4o=";
16   };
18   vendorHash = "sha256-N9Hmxw/70Cgc790AVRn7lmuhMtDhI94CTUlqHU4VbaY=";
20   nativeBuildInputs = [ installShellFiles ];
22   ldflags = [
23     "-s"
24     "-w"
25   ];
27   subPackages = [ "." ];
29   postInstall = ''
30     installShellCompletion --cmd tuleap-cli \
31       --bash <($out/bin/tuleap-cli -s tuleap.example.com completion bash) \
32       --fish <($out/bin/tuleap-cli -s tuleap.example.com completion fish) \
33       --zsh <($out/bin/tuleap-cli -s tuleap.example.com completion zsh)
34   '';
36   meta = {
37     description = "Command-line interface for the Tuleap API";
38     homepage = "https://gitlab.com/csgroup-oss/tuleap-cli";
39     license = lib.licenses.gpl3Plus;
40     maintainers = with lib.maintainers; [ lesuisse ];
41     mainProgram = "tuleap-cli";
42   };