vscode-extensions.yoavbls.pretty-ts-errors: 0.5.4 -> 0.6.1 (#363464)
[NixPkgs.git] / pkgs / by-name / tr / transifex-cli / package.nix
bloba4551be0f8c636b9e66156cc43cfa764100cfd6b
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "transifex-cli";
9   version = "1.6.17";
11   src = fetchFromGitHub {
12     owner = "transifex";
13     repo = "cli";
14     rev = "v${version}";
15     sha256 = "sha256-jzAt/SalItGG0KI3GZb4/pT4T7oHwCji2bjNR1BTJXI=";
16   };
18   vendorHash = "sha256-3gi2ysIb5256CdmtX38oIfeDwNCQojK+YB9aEm8H01Q=";
20   ldflags = [
21     "-s"
22     "-w"
23     "-X 'github.com/transifex/cli/internal/txlib.Version=${version}'"
24   ];
26   postInstall = ''
27     mv $out/bin/cli $out/bin/tx
28   '';
30   # Tests contain network calls
31   doCheck = false;
33   meta = with lib; {
34     description = "Transifex command-line client";
35     homepage = "https://github.com/transifex/transifex-cli";
36     license = licenses.asl20;
37     maintainers = with maintainers; [ thornycrackers ];
38     mainProgram = "tx";
39   };